ReinisV opened a new issue, #18449: URL: https://github.com/apache/echarts/issues/18449
### Version 5.4.2 ### Link to Minimal Reproduction https://echarts.apache.org/examples/en/editor.html?c=line-simple&lang=ts&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwArAAMPLAATADMmTnZACxZ2ckAHFnJualVRQDspQBs6dahHhTUdP4Q0MpxdiS2dgDcKCj-VGCw9MCWLBwIsOljAO69AsCrAHThYACS0At-_gAUpwCUCAB88TNzRxGwANSIyWPoEABmp7PzTwBSHIIeCIdIXdykUCQGDbIRgRgALWAwAAtktLAIqF9ehpYHFoVBoNtIGBJktIR0qBgwHR1mBtHNpgAvFGo4IeQboOxUfzhSmwQmw0nkxAC9AsGl0iAM2CstEc0hcqHgIlw4TItFLWIecWeLqyPA9LEcRXc9p3DpeOi9PAQLFm2B2Wzckio8gAYW0jA4YF2UwA8qqYKchdALigHDl0jGLiMgA ### Steps to Reproduce run the demo. the demo contains code to add/remove datazoom from the chart every two seconds by updating the `option.dataZoom` field and posting the updated `option` object to the chart via `myChart.setOption(option)`. ### Current Behavior while the title of the chart changes, the dataZoom, after being added for the first time, isn't removed on consecutive actions. ### Expected Behavior the dataZoom should be removed from the chart when `option.dataZoom` is set to `undefined` and that option is posted to the chart via `myChart.setOption(option)`. ### Environment ```markdown - OS: Windows 10 - Browser: Chrome 111.0.5563.146 - Framework: none ``` ### Any additional comments? none -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
