The reference axis of the axis of the core

In the core of the iOS kernel, my data arrives in real time, and I want it to scroll left while the data is ticking. I would also like the user to be able to pan horizontally, always seeing the y axis visible on the left. From some googling it seems that CPTAxis had the isFloatingAxis property, but this is no longer there. What should I do? I don’t think that the setting restriction is what I need because I want the free horizontal scrolling to display some data left and right.

+4
source share
1 answer

OK I see that the restriction is what I need. In CorePlotGallery under the directory example, there is an example CurvedScatterPlot that shows how to do this. I can get CPTXYAxis from the Set axis and set axisConstraints:

 CPTXYAxis *y = axisSet.yAxis; y.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0]; 

And he will work.

+12
source

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


All Articles