| | |
| | | pluss: false, // 水滴值+1动画开关 |
| | | movetree: true, // 树动画开关 |
| | | ranksNum: [], |
| | | |
| | | option1: "", |
| | | echarts1: "", |
| | | }; |
| | | }, |
| | | |
| | |
| | | mounted() { |
| | | // eslint-disable-next-line no-undef |
| | | this.onTwoEcharts(); |
| | | this.onSixEcharts(); |
| | | this.createechart1(); //建立图表1 |
| | | this.onSixEcharts(); //图表1数据 |
| | | this.createMapJson(); |
| | | }, |
| | | methods: { |
| | |
| | | |
| | | myChart.setOption(option, true); |
| | | }, |
| | | |
| | | onSixEcharts() { |
| | | createechart1() { |
| | | var myChart = echarts.init(document.getElementById("on_six_yjy")); |
| | | this.echarts1 = myChart; |
| | | }, |
| | | onSixEcharts() { |
| | | this.echarts1.clear(); |
| | | //改折线图 |
| | | var option = { |
| | | tooltip: { |
| | |
| | | axisLabel: { |
| | | formatter: "{value}", |
| | | }, |
| | | position: "left", |
| | | axisTick: { |
| | | show: false, |
| | | }, |
| | |
| | | axisLabel: { |
| | | formatter: "{value} %", |
| | | }, |
| | | position: "right", |
| | | axisTick: { |
| | | show: false, |
| | | }, |
| | |
| | | }, |
| | | ], |
| | | }; |
| | | |
| | | myChart.setOption(option); |
| | | this.echarts1.setOption(option); |
| | | }, |
| | | |
| | | createMapJson() { |