开发者

How to set last index values as first while drawing the CPBarPlot?

开发者 https://www.devze.com 2023-02-13 02:36 出处:网络
I want to load the CPBarPlot with Last 10 index values when the reload data is called, is any function there to a开发者_高级运维chieve like this....

I want to load the CPBarPlot with Last 10 index values when the reload data is called, is any function there to a开发者_高级运维chieve like this....

Thanks in advance


It's up to you to determine the data to be plotted. Just return 10 in -numberOfRecordsForPlot: and figure out the amount to offset the index in -numberForPlot:field:recordIndex:. For instance, if your data set has 50 points and Core Plot asks for the data at index 5, return the point at index 50 - 10 + 5 = 45.

0

精彩评论

暂无评论...
验证码 换一张
取 消