Apexcharts.js: updateOptions() reactivates toggled series in legend

Created on 5 Jun 2019  路  4Comments  路  Source: apexcharts/apexcharts.js

Codepen

Codepen

Explanation

  • 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!

bug

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

All 4 comments

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.

Codepen showing this

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

artfulrobot picture artfulrobot  路  3Comments

rudeayelo picture rudeayelo  路  3Comments

drew-dulgar picture drew-dulgar  路  3Comments

felixalguzman picture felixalguzman  路  3Comments

rcoundon picture rcoundon  路  3Comments