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.
精彩评论