From 7552e09aebe03b1cf17b5861e770fb6ea220b9af Mon Sep 17 00:00:00 2001 From: lb Date: Tue, 22 Nov 2022 16:58:49 +0800 Subject: [PATCH] update --- .../3DOverview/components/FadianChart.vue | 9 +++++ .../components/charts/pl-JDL-Chart.vue | 35 ++++++++++--------- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/views/3DOverview/components/FadianChart.vue b/src/views/3DOverview/components/FadianChart.vue index 699975a..4b86a0d 100644 --- a/src/views/3DOverview/components/FadianChart.vue +++ b/src/views/3DOverview/components/FadianChart.vue @@ -51,6 +51,15 @@ export default { bottom: 0, containLabel: true }, + // tooltip: { + // show: true, + // trigger: 'axis', + // axisPointer: { + // type: 'cross', + // axis: 'y' + // } + // formatter: '{b}
{a0}: {c}%
{a1}: {c1}%' + // }, xAxis: { type: 'category', boundaryGap: false, diff --git a/src/views/EquipmentManager/components/charts/pl-JDL-Chart.vue b/src/views/EquipmentManager/components/charts/pl-JDL-Chart.vue index a1625a6..911ba96 100644 --- a/src/views/EquipmentManager/components/charts/pl-JDL-Chart.vue +++ b/src/views/EquipmentManager/components/charts/pl-JDL-Chart.vue @@ -25,23 +25,26 @@ export default { bottom: 0, containLabel: true }, - xAxis: [ - { - type: 'category', - data: ['A', 'B', 'C', 'D', 'E'], - axisTick: { - alignWithLabel: true - }, - axisLine: { - lineStyle: { - color: '#5982B233' - } - }, - axisLabel: { - color: '#fff' + tooltip: { + show: true, + type: 'shadow', + trigger: 'item' + }, + xAxis: { + type: 'category', + data: ['A', 'B', 'C', 'D', 'E'], + axisTick: { + alignWithLabel: true + }, + axisLine: { + lineStyle: { + color: '#5982B233' } + }, + axisLabel: { + color: '#fff' } - ], + }, yAxis: [ { type: 'value', @@ -58,7 +61,7 @@ export default { axisLabel: { color: '#ffffff9d' }, - axisTick: { show : false } + axisTick: { show: false } } ], series: [