echarts size chart rendering issues

In use tab switching, and other effects carousel module echarts chart, the chart may be rendered after switching to a size of 100 * 100, to solve this problem, use a resize () method. Code is as follows:
echarts Initialization:

var echartsInt = echarts.init(document.getElementById("echartId"))

Handling code:

echartsInt.resize();

Guess you like

Origin www.cnblogs.com/nige/p/11496006.html