From f4676d05787bf7236eb6e7c5e7dfa500c8007df6 Mon Sep 17 00:00:00 2001 From: zyh Date: Mon, 25 Sep 2023 14:00:30 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9stat=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8=E9=9D=A2=E7=A7=AF=E5=9B=BE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/chart/chart/chartStat.vue | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/nezha-fronted/src/components/chart/chart/chartStat.vue b/nezha-fronted/src/components/chart/chart/chartStat.vue index 051d60410..c7bf3601f 100644 --- a/nezha-fronted/src/components/chart/chart/chartStat.vue +++ b/nezha-fronted/src/components/chart/chart/chartStat.vue @@ -399,16 +399,8 @@ export default { }] if (this.chartInfo.param.sparklineMode === 'area') { chartOption.series[0].areaStyle = { - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: this.hexToRgb(color, 0.1) - }, - { - offset: 1, - color: this.hexToRgb(color, 1) - } - ]) + color: color, + opacity: 0.1 } } chartOption.yAxis.max = this.maxValue