What is the behavior you expect?
The functions updateOptions should only change the options, not the state of the series if it is toggled or not
What is happening instead?
updateOptions() reactivates a already deselected (toggled) series, but only in the legend not in the chart itself.
After that, clicking on the reactivated series has no effect at all!
I'm having the same issue as well. It would be nice (as stated above) for the updateOptions not to interfere with whether the series is visible or not.
updateOptions will not interfere with the series unless the new options also contain series array.
If it contains series prop, a new method resetSeries() will be called which will prevent these issues.
Closing as similar to #655
The related bug will be fixed in 3.8.0
Not sure if I've misunderstood but it doesn't look like this is fixed with 3.8.0 @junedchhipa ? If we call updateOptions with new options without series it still reactivates the deselected series in the legend and leaves the user with no way to actually reactivate that series.
Hi @junedchhipa, I am facing the exact same issue as @CatSizeVoyage pointed in their last CodePen. How would you get around this bug? any help would be appreciated.
Thanks!
Most helpful comment
Not sure if I've misunderstood but it doesn't look like this is fixed with 3.8.0 @junedchhipa ? If we call updateOptions with new options without series it still reactivates the deselected series in the legend and leaves the user with no way to actually reactivate that series.
Codepen showing this