echarts@5 animation failed

Reason: After using resize, the animation fails. This is a bug of echarts5, but not echarts4.

Solution: https://github.com/apache/echarts/pull/14553

Add animation to resize

onResize() {
    
    
      this.myChart.resize({
    
    
        animation: {
    
    
          duration: 2800,
          easing: 'cubicInOut',
          // delay: 500,
        },
      })
    },

Guess you like

Origin blog.csdn.net/weixin_41886421/article/details/131509009