简体   繁体   中英

Adjusting y-Axis in Core Plot when x-Axis changes

I have a chart with only a certain range of the plot showing. When I scroll to the right a differtent range is shown. Works fine. But how do I adjust the y-Axis to the range of the points currently shown? I dont want the range of all points of a plot.

The only built-in method sets both the x- and y-ranges to fit all of the plot data. You can set the yRange to anything you want. Either search your dataset for all of the visible points and compute the range from those points, or use some knowledge about the data (eg, its always increasing) if you have any to make the range calculation easier.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM