Core Plot: The x axis should remain visible when scrolling horizontally (or vice versa)

I use the main chart to create a line chart with a long xAxis range. I made the vertical direction of the chart fixed / constant and allowed it to scroll only horizontally. However, if I start to scroll / scroll horizontally, the y axis will not move (e.g. x-label). The y-axis is visible only at the starting point of the graph. I would be grateful if anyone could help me. Thank you so much in advance.

+6
source share
1 answer

Use axisConstraints :

 y.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0]; 
+17
source

Source: https://habr.com/ru/post/908432/


All Articles