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,
},
})
},