whychdw
2019-07-25 784ec36c5dfea729429fa1b8ea1b1110cbaccbe7
src/components/LineGraph.vue
@@ -12,6 +12,7 @@
</template>
<script>
import echarts from 'echarts';
import darkColor from '../libs/echarts/theme/dark-color';
import $ from 'jquery';
import {
    getMaxFromArr,      // 从数组中获取最大值
@@ -74,6 +75,9 @@
                    break;
                    case 'roma':
                        result = 'roma';
                    break;
                    case 'dark-color':
                        result="dark-color";
                    break;
                    default:
                        result = 'macarons';
@@ -172,6 +176,7 @@
        }
    },
    mounted: function() {
        echarts.registerTheme('dark-color', darkColor);
        var _self = this;
        var option = this.option;
        var theme = this.theme;