【发布时间】:2017-04-27 13:38:41
【问题描述】:
我有一个图表,我需要在添加新元素的过程中更改它的 xPlotRange。我该怎么做?
我试过这个:
[self.hostView.hostedGraph.defaultPlotSpace
setAllowsUserInteraction:YES];
long count = [array count];
if (count>100 && count<maxElements)
[self plotSpace:self.hostView.hostedGraph.defaultPlotSpace willChangePlotRangeTo:[CPTMutablePlotRange plotRangeWithLocation:@(0.0) length:[NSNumber numberWithInteger:count+100]] forCoordinate:CPTCoordinateX];
【问题讨论】:
标签: ios objective-c core-plot