Report "axis.getAxesOnZeroOf is not a function" when the echart diagram is initialized.

1 Error in mounted hook: "TypeError: axis.getAxesOnZeroOf is not a function"

is reported when the image is initialized.

2, code

    methods: {
        echartInit: function() {
            if (this.chartObj !== null && !this.chartObj.isDisposed() ) {
                echarts.dispose(this.chartObj)
            }
            var chart = document.getElementById("chart")
            this.chartObj = echarts.init(chart)
            var option = this.$store.getters["station/getEchartOption"]
            this.chartObj.setOption(option)
            var thisObj = this
            window.onresize = function() {
                thisObj.$store.dispatch("station/eChartContainer", chart)
                thisObj.chartObj.resize()
            }
        }
    }
    

Dec.08,2021

series is not worth it


my analysis is caused by a method problem, which is the result of my analysis: https://www.cnblogs.com/gzbit-zxx/p/12030974.html Welcome to check

Menu