Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Core Plot: x-Axis should remain visible while scrolling horizontally (or vice versa)

I am using core plot to make a line graph with a long xAxis-range. I made the vertical direction of the graph fixed/constant and let it only scroll horizontally. However, if I start scrolling/swiping horizontally, the y-Axis will not move along (like the x-label). The y-Axis is only visible at starting point of the graph. I would appreciate if somebody can help me. Thank you very much in advance.

like image 311
fernyfine Avatar asked Feb 14 '12 13:02

fernyfine


1 Answers

Use the axisConstraints:

y.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0];
like image 150
Eric Skroch Avatar answered Oct 18 '22 21:10

Eric Skroch