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>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4106d-44141.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4106d-44141.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?