I have a chart with 3 SChartLineSeries
. I would like to show 3 simultaneous target points (from the crosshair that corresponds to his serie) at the same time.
Like I have on this picture with dataPoints, but I would like have it on the same X position with Crosshairs.
How can I achieve that? I tried to recognize the 'long press' event in the delegate method, but I didn't figure out how to do it.
With crosshairs, I only have this:
EDIT:
Ive tried:
- (void)sChart:(ShinobiChart *)chart toggledSelectionForPoint:(SChartDataPoint *)dataPoint inSeries:(SChartSeries *)series atPixelCoordinate:(CGPoint)pixelPoint
{
for (SChartLineSeries *serie in chart.series) {
for (SChartDataPoint *dp in serie.dataSeries.dataPoints){
if (dp.xValue == dataPoint.xValue){
dp.selected = YES;
serie.crosshairEnabled = YES;
serie.style.selectedPointStyle.color = [UIColor blackColor];
serie.style.selectedPointStyle.radius = [NSNumber numberWithInt:8];
serie.style.selectedPointStyle.showPoints = YES;
}
}
}
}
And subclassing the object 'SChartCrosshair
' I recognize the long press event on 'crosshairChartGotLongPressAt
'.