Description
When new options are provided to the chart and updateOptions is called while there are hidden series, the series data in the initialConfig are cleared
|
series = this.emptyCollapsedSeries(series) |
Steps to Reproduce
- console.log
chart.w.globals.initialConfig.series with a hidden series
- Update the series using
chart.updateOptions
- console.log
chart.w.globals.initialConfig.series with a hidden series
Expected Behavior
I am expecting that initialConfig should always provide unadulterated initial config
Actual Behavior
initialConfig removes data from hidden series
Screenshots
Reproduction Link
https://codepen.io/bmanth60/pen/ogbGpGa
Description
When new options are provided to the chart and
updateOptionsis called while there are hidden series, the series data in theinitialConfigare clearedapexcharts.js/src/modules/Series.js
Line 104 in 0e7addc
Steps to Reproduce
chart.w.globals.initialConfig.serieswith a hidden serieschart.updateOptionschart.w.globals.initialConfig.serieswith a hidden seriesExpected Behavior
I am expecting that
initialConfigshould always provide unadulterated initial configActual Behavior
initialConfigremoves data from hidden seriesScreenshots
Reproduction Link
https://codepen.io/bmanth60/pen/ogbGpGa