From e1e826565abaad1fe49389d8ad2eb7f7fdacc28a Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期二, 05 九月 2023 18:31:19 +0800 Subject: [PATCH] 接口 --- src/views/line_graph/components/DustRadarChart.vue | 16 +++++----------- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/views/line_graph/components/DustRadarChart.vue b/src/views/line_graph/components/DustRadarChart.vue index b0e5748..9db0b1f 100644 --- a/src/views/line_graph/components/DustRadarChart.vue +++ b/src/views/line_graph/components/DustRadarChart.vue @@ -54,7 +54,7 @@ color: ['#ddd', '#aaa'] } }, - // shape: 'circle', + indicator: [ { name: this.name[0], max: 1 }, { name: this.name[1], max: 1 }, @@ -62,13 +62,7 @@ { name: this.name[3], max: 1 }, { name: this.name[4], max: 1 } ], - // splitArea: { - // areaStyle: { - // // color: ['#77EADF', '#26C3BE', '#64AFE9', '#428BD4'], - // shadowColor: 'rgba(0, 0, 0, 0.2)', - // shadowBlur: 10 - // } - // }, + axisName: { color: '#428BD4' }, @@ -82,11 +76,11 @@ data: [ { value: [ - (this.yData[0] / 100).toFixed(4), + (1 - (this.yData[0] / 100).toFixed(4)), this.yData[1], this.yData[2], - (this.yData[3] / 100).toFixed(4), - (this.yData[4] / 100).toFixed(4) + (this.yData[3] / 100).toFixed(4), + 1-((this.yData[4] / 100).toFixed(4)) ], // value: [ // this.yData[0], -- Gitblit v1.9.3