我在我的App中使用了ShinobiChart,我将numberOfSeries设置为1:
- - (int)的numberOfSeriesInSChart:(ShinobiChart *)图表{
返回1;
}
我使用SChartDateTimeAxis作为xAxis:
谁有同样的问题?SChartDateTimeAxis * xAxis = [[SChartDateTimeAxis alloc] init];
xAxis.labelFormatter = labelFormatter;
xAxis.allowPanningOutOfDefaultRange = NO;
xAxis.style.majorGridLineStyle.showMajorGridLines = NO;
xAxis.style.majorTickStyle.showTicks = YES;
xAxis.allowPanningOutOfMaxRange = YES;
self.lineChart.xAxis = xAxis;
答案 0 :(得分:0)
将轴添加到lineChart后,您需要告诉图表重绘:
[self.lineChart redrawChart];