MinutesSneezer commented on issue #11132: 数据切换问题 / Data switching problem ▶ TypeError: Cannot read property 'get' of undefined URL: https://github.com/apache/incubator-echarts/issues/11132#issuecomment-526027784 目前用了很*暴力*的方法解决了:先`var option = myChart.getOption()`,然后`option.series = ...`直接修改,然后再`myChart.setOption(option, true)`就可以了。不过我担心这样set有潜在的风险…… The problem is temporarily resolved in a *brutal* manner: 1. `var option = myChart.getOption()` 2. `option.series = seriesYouWant` 3. `myChart.setOption(option, {notMerge: true})` I am nevertheless worried about the possible risk of such directly editing the whole `option`.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
