Data Point Style


#1

How can I update my line graph so that the points look like they do in the first example in the gallery? http://www.shinobicontrols.com/ios/shinobicharts/gallery.  e.g. hollow circles.


#2

Hi Ivan,

Thanks for getting in touch!

You can get that exact style by applying the SChartLightTheme to your chart using the following code:

[_chart applyTheme:[SChartLightTheme new]];

You may also need to set “showPoints” property on the SChartLineSeriesStyle to yes like so:

-(SChartSeries *)sChart:(ShinobiChart *)chart seriesAtIndex:(NSInteger)index {
    SChartLineSeries *lineSeries = [[SChartLineSeries alloc] init];
    lineSeries.style.pointStyle.showPoints = YES;
    return lineSeries;
}

Let me know if you have any issues.

Kind Regards,
Andrew Polkinghorn