I have tried to using [graph reloadData]
to refresh my data for a scatterplot,but i didn't get the correct y-axist.
Here is my y-axist code:
CPTXYAxis *y = axisSet.yAxis;
y.title = @"";
y.titleTextStyle = axisTitleStyle;
y.titleOffset = 20.0f;
y.axisLineStyle = axisLineStyle;
//y.majorGridLineStyle = gridLineStyle;
y.labelingPolicy = CPTAxisLabelingPolicyAutomatic;
y.labelTextStyle = axisTextStyle;
y.labelOffset = -40.0f;
y.majorTickLineStyle = tickLineStyle;
tickLineStyle.lineWidth = 0.1f;
y.minorTickLineStyle = tickLineStyle;
y.majorTickLength = 2.0f;
y.minorTickLength = 1.0f;
y.tickDirection = CPTSignPositive;
y.plotSpace = graph.defaultPlotSpace;
Is there anyway to change the y scale dynamically when i have called the reloadData method?