// Add a timer to each event-listening method.
        
          window.onresize = function () {self.echarts.resize()} orwindow.addEventListener('resize'.function () {
                 self.myEcharts.resize();
            })
      
 
Copy the code