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, [ {