ligaofeng0901 opened a new issue #13009: URL: https://github.com/apache/incubator-echarts/issues/13009
### Version 4.8.0 ### Reproduction link [https://echarts.apache.org/examples/zh/editor.html?c=bar-background](https://echarts.apache.org/examples/zh/editor.html?c=bar-background) ### Steps to reproduce showBackground为空或为false的情况下,修改为true再setOption,会导致图表crash。 可在示例中先将showBackground修改为false,再修改为true,控制台报错。 ``` TypeError: Cannot read property 'useStyle' of undefined at kf._update (echarts.min.js?_v_=1595472244966:22) at kf.execute (echarts.min.js?_v_=1595472244966:22) at e._renderNormal (echarts.min.js?_v_=1595472244966:22) at e.render (echarts.min.js?_v_=1595472244966:22) at jh.progress (echarts.min.js?_v_=1595472244966:22) at ac (echarts.min.js?_v_=1595472244966:22) at jh.qh.perform (echarts.min.js?_v_=1595472244966:22) at echarts.min.js?_v_=1595472244966:22 at e.<anonymous> (echarts.min.js?_v_=1595472244966:22) at Array.forEach (<anonymous>) ``` ``` TypeError: Cannot read property 'useStyle' of undefined at DataDiffer._update (BarView.js:201) at DataDiffer.execute (DataDiffer.js:112) at ExtendedClass._renderNormal (BarView.js:251) at ExtendedClass.render (BarView.js:109) at Task.progress (Chart.js:281) at doProgress (task.js:217) at Task.push../node_modules/echarts/lib/stream/task.js.taskProto.perform (task.js:157) at echarts.js:1474 ``` ### What is expected? 正常显示柱子背景 ### What is actually happening? 图表报错。 <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE --> ---------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
