From cc9782e00754c7590a6ce9b7fca5ad2ee3952d55 Mon Sep 17 00:00:00 2001 From: zjc <1034206993@qq.com> Date: Fri, 13 Dec 2024 10:50:09 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E5=AE=8C=E5=96=84=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Line/index.vue | 68 ++++------------------------------- 1 file changed, 6 insertions(+), 62 deletions(-) diff --git a/src/components/Line/index.vue b/src/components/Line/index.vue index 814b025..00b7ab9 100644 --- a/src/components/Line/index.vue +++ b/src/components/Line/index.vue @@ -29,6 +29,12 @@ let lineChart = null let defaultCofig = { + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'cross' + } + }, grid: { left: '2%', right: '2%', @@ -69,74 +75,12 @@ } } }, - visualMap: { - show: false, - dimension: 0, - pieces: [ - { - lte: 6, - color: 'green' - }, - { - gt: 6, - lte: 8, - color: 'red' - }, - { - gt: 8, - lte: 14, - color: 'green' - }, - { - gt: 14, - lte: 17, - color: 'red' - }, - { - gt: 17, - color: 'green' - } - ] - }, series: [ { data: [], type: 'line', smooth: true, symbol: 'none', - markArea: { - itemStyle: { - color: 'rgba(255, 173, 177, 0)' - }, - data: [ - [ - { - xAxis: '10:00' - }, - { - xAxis: '10:05' - }, - { - xAxis: '10:10' - }, - { - xAxis: '10:15' - }, - { - xAxis: '10:20' - }, - { - xAxis: '10:25' - }, - { - xAxis: '10:30' - }, - { - xAxis: '10:35' - } - ] - ] - }, lineStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ {