From 2d445a7f255343099b4647ea5ce51d2980768003 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 28 Sep 2023 16:45:41 +0800
Subject: [PATCH] fix:立行立改
---
src/components/Echarts/LineChart.vue | 56 +++++++++++++++++++++++++++++---------------------------
1 files changed, 29 insertions(+), 27 deletions(-)
diff --git a/src/components/Echarts/LineChart.vue b/src/components/Echarts/LineChart.vue
index 7948ca8..a141d44 100644
--- a/src/components/Echarts/LineChart.vue
+++ b/src/components/Echarts/LineChart.vue
@@ -65,10 +65,9 @@
// }
},
mounted() {
- // this.$nextTick(() => {
- // this.initChart()
- // })
- this.initChart()
+ this.$nextTick(() => {
+ this.initChart()
+ })
},
beforeDestroy() {
if (!this.chart) {
@@ -97,19 +96,19 @@
boundaryGap: false,
axisTick: {
show: false
- },
+ }
// axisTick: { // ������������������������������
// alignWithLabel: true,
// show: true
// },
- axisLine: {
- lineStyle: {
- color: '#000000'
- }
- },
- axisLabel: {
- interval: this.interval
- }
+ // axisLine: {
+ // lineStyle: {
+ // color: '#000000'
+ // }
+ // },
+ // axisLabel: {
+ // interval: this.interval
+ // }
},
grid: {
left: '5%',
@@ -144,24 +143,27 @@
yAxis: {
axisTick: {
show: false // ������������
- },
- axisLine: {
- lineStyle: {
- color: '#000000'
- }
}
+ // axisLine: {
+ // lineStyle: {
+ // color: '#000000'
+ // }
+ // }
},
legend: {
- data: val.title
+ data: val.title,
+ tooltip: {
+ show: true
+ }
},
- // dataZoom: [{
- // type: 'inside',
- // start: 0,
- // end: 100
- // }, {
- // start: 0,
- // end: 10
- // }],
+ dataZoom: [{
+ type: 'inside',
+ start: 0,
+ end: 100
+ }, {
+ start: 0,
+ end: 10
+ }],
series: val.series
// [{
// name: JSON.parse(JSON.stringify(val.title)),
--
Gitblit v1.8.0