I built an animation that changes position and size, and placed the chart created with echarts inside it. But I don't know how to make it work responsively.
・What I tried
I wrote the resize function by referring to the official Echarts documentation.
https://echarts.apache.org/en/api.html#echartsInstance.resize
window.onresize = function () {
myChart.resize();
})
The chart is resized by sensing the window size, but not by the animation. How can I change the chart size through animation?
・Here's the full code
https://codesandbox.io/s/echarts-test-3vg2t?file=/src/chart.js