Search code examples
objective-ccore-plotios-charts

How to show more x-axes in core-plot chart


According to our needs, we need to show the x-axis information at the top and bottom of the chart, how to show more x-axes? THX

enter image description here


Solution

  • Several of the Core Plot example apps show how to add multiple axes in a graph. See, for example, the "Axis Demo" in the Plot Gallery app. Position one x-axis at the top and the other at the bottom using the axisConstraints or orthogonalCoordinateDecimal.