我在我的应用程序中使用 ShinobiChart,我将 numberOfSeries 设置为 1:
- -(int)numberOfSeriesInSChart:(ShinobiChart*)chart{
return 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;
有人遇到同样的问题吗?