CrossHair shown when tab close to series


#1

Hi,

I have a column chart, that have very tick bars, so it is very hard to tap directly on the bar. Si it is really hart to “open” crosshair.

My question is how to set crosshair to open when user tap near the bar.


#2

Hi Marko,

This isn’t something we support straight out of the box.

To get this behaviour you’ll have to implement your own user tap to data point converter using the SChartAxis dataValueForPixelValue method (more info can be found here). Then search through your series data point values to find the closest data point. Which you can then programmatically select using the series’ selectedDataPoints set property.

Let me know if you have any questions.

Kind regards,
Andrew Polkinghorn.