I have a line series chart with two cases: a combined line of all values or, if the user unchecks a checkbox, mulitple lines representing each set of data. If I have a crosshair showing on the single line, say, and toggle the checkbox, I reload the data on the chart, get multiple lines as expected and then the crosshair returns.
The code is similar to this
[self.chartreloadData]; [self.chartredrawChart]; [(SChartCrosshair *)self.chart.crosshairremoveCrosshair]; [self.chart.xAxisresetZoomLevelWithAnimation:YES]; [self.chart.yAxisresetZoomLevelWithAnimation:YES];
hide on the crosshair exhibits the same behaviour. Calling removeCrosshair before reloadData exhibits the same behaviour as well. I’ve tried setting selected to NO on my data points and my series. The tooltip comes back every time.
Here’s what I’d like: if the crosshair is showing when the user taps the checkbox, the crosshair hides, the chart resets zoom and shows the single line or multiple line as appropriate.