How to update chart data dynamically in Iview-admin

uses iview-admin as the front-end template. I don"t know much about the front-end. Currently, I want to request the data to be updated to the chart through api, but the echart in iview-admin seems to have been instantiated and the data cannot be changed.

Feb.18,2022

<template>
    <div ref="chart" class="chart"></div>
</template>

<style>
.chart {
    width: 100%;
    height: 400px;
}
</style>

<script>
    export default {
        data() {
            return {
                myChart: null,
                option: {
                    // echarts
                }
            }
        },
        methods: {
            chartResizeFn() {
                this.$nextTick(() => {
                    this.myChart.resize();
                });
            },
            // 
            tabSwitchFn(){
                this.chartResizeFn();
            }
        },
        mounted() {
            this.myChart = this.myChart || this.echarts.init(this.$refs.chart);
            // ajax
            // axios.get('url').then((data)=>{
                // this.option=data.option;
            // })
            
            this.myChart.setOption(this.option);
            
            this.$nextTick(() => {
                // 
                window.addEventListener("resize", this.chartResizeFn);
            });
        },
        destroyed() {
            // resize
            window.removeEventListener("resize", this.chartResizeFn);
        }
    };
</script>
Menu