whychdw
2019-09-03 0ad44091c7f1b6c1e90919aed1b430dea0e2b5f2
src/js/components.js
@@ -220,6 +220,7 @@
    },
    methods: {
        setOption: function(opt) {
            var self = this;
            var defaults = {
                tooltip: {
                    trigger: 'axis',
@@ -257,8 +258,9 @@
            // 设置柱状图的颜色
            this._setColor();
            this.graph.setOption(this.option);
            this.graph.resize();
            this.graph.setOption(this.option, true);
        },
        _setRange: function() {     // 设置范围
            var option = this.option;