Series reappears after setting hidden property


#1

I’ve three line series periodically updating; I implemented an IBAction so that the user can select to hide a series to isolate specific plots – what I can’t figure out is why - or how to prevent - the plot from reappearing a moment later. I hide a series with [_chart.series[0] setHidden:true]  but I’m guessing when the chart redraws, it rasters the hidden series – any suggestions as to how best address the issue?


#2

Hi SolomonV,

Can I check when you are reloading your series, are you setting the hidden property on the series you wish to be hidden to YES?

If you are reloading a new series object via your datasource, it will overwrite the series you previously hid on your chart and therefore displays the series.

Kind regards,
Andrew Polkinghorn.