iOS multiselect SChartScatterSeries


My iOS chart implementation has scatterseries datapoints which I want to be selectable independently of each other. Of the series selectionModes avaible, it looks like SChartSelectionPoint is the closest that I can get to multiselection. However, when the user selects a data point it looks like every other data point in the series is deselected, thus not allowing for multiselection. I thought I could fix this with the code below, but it doesn’t seem to be working:

-(void)sChart:(ShinobiChart *)chart toggledSelectionForPoint:(SChartDataPoint *)dataPoint inSeries:(SChartSeries *)series atPixelCoordinate:(CGPoint)pixelPoint {

SChartDataPoint *dp = series.dataSeries.dataPoints[dataPoint.index];
dp.selected = YES;
[chart redrawChartIncludePlotArea:YES]


Hi MrAnthony,

This can be done by using the “togglePointSelection” property on your series like so:

series.togglePointSelection = YES;

Let me know if you have any questions.

Kind Regards,
Andrew Polkinghorn