style(StatsView): 优化图表样式,添加渐变色和线条样式

This commit is contained in:
anghunk
2026-01-21 13:31:58 +08:00
parent 943225cc7f
commit bbe2bdd820

View File

@@ -174,7 +174,16 @@ function renderChart() {
type: "line",
smooth: true,
data: values,
areaStyle: {},
areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: "rgba(56, 189, 248, 0.80)" },
{ offset: 1, color: "rgba(56, 189, 248, 0.2)" },
]),
},
lineStyle: {
width: 2,
color: "#0ea5e9",
},
symbol: "circle",
symbolSize: 6,
},