0

I'm using ShinobiChart in my App, I set the numberOfSeries always be 1:

  • -(int)numberOfSeriesInSChart:(ShinobiChart*)chart{
    return 1;
    }

and I used SChartDateTimeAxis for the 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;

anyone got the same problem?

lxzhh
  • 416
  • 1
  • 3
  • 12

1 Answers1

0

After adding the axis to the lineChart, you will need to tell the chart to redraw with:

[self.lineChart redrawChart];
Tom Kelly
  • 196
  • 1
  • 5