Solution to the problem of chart overlapping when echarts re-renders

Problem Description:

1. Select series--generate chart--do not select series--generate chart--normal (charts will not overlap);

2. Select series--generate chart--full screen--restore--do not select series and change chart type--generate chart--abnormal (chart overlapping).

problem causes:

myChart.setOption(option);

change into:

myChart.setOption(option, true); solve the problem.

It all boils down to: echarts re-rendering problem!

 

refer to:

https://www.cnblogs.com/Skrillex/p/7904797.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325200949&siteId=291194637