diff --git a/nezha-fronted/src/components/chart/chart/chartStat.vue b/nezha-fronted/src/components/chart/chart/chartStat.vue index 47d265878..5f8482bea 100644 --- a/nezha-fronted/src/components/chart/chart/chartStat.vue +++ b/nezha-fronted/src/components/chart/chart/chartStat.vue @@ -325,7 +325,16 @@ export default { }] if (this.chartInfo.param.sparklineMode === 'area') { chartOption.series[0].areaStyle = { - color + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: this.hexToRgb(color, 0.1) + }, + { + offset: 1, + color: this.hexToRgb(color, 1) + } + ]) } } chartOption.yAxis.max = this.maxValue diff --git a/nezha-fronted/src/components/chart/chart/legend.vue b/nezha-fronted/src/components/chart/chart/legend.vue index fb33924c1..9eda32fd5 100644 --- a/nezha-fronted/src/components/chart/chart/legend.vue +++ b/nezha-fronted/src/components/chart/chart/legend.vue @@ -43,47 +43,6 @@
{{(keepTwoDecimalFull(statistics.value))}}
- - -