문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top