Frage

I have a core plot graph which extends over the visible screen area. User interaction is enabled, and when the use opens the view controller, the beginning of the chart is displayed, but I would like to display the end, and the user then may scroll vertically to the left if he wants to see older data (Note: the x-Axis is chronological)

Is there a way to scroll an area into view, same like scrolling into view in a uiscrollview?

War es hilfreich?

Lösung

Let consider your total area is 300 and you're going to display the initial content from 250-300.

Then, set the xRange as 250-300 and set the globalXRange as 0-300.

For more: Core Plot (iOS) - CPTXYPlotSpace

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top