fix(growth): 避免图例与日期标签重叠

This commit is contained in:
湛兮
2026-10-28 22:33:32 +08:00
parent e09db9b280
commit 81e6dff270
+6 -3
View File
@@ -159,7 +159,7 @@ function options(): EChartsCoreOption[] {
}, },
{ {
...base, ...base,
legend: { textStyle: { color: "#8892a3" } }, legend: { top: 0, textStyle: { color: "#8892a3" } },
xAxis: { xAxis: {
...base.xAxis, ...base.xAxis,
data: experiments.map(r => `v${r.revision} · ${r.variant}`) data: experiments.map(r => `v${r.revision} · ${r.variant}`)
@@ -184,8 +184,11 @@ function options(): EChartsCoreOption[] {
}, },
{ {
...base, ...base,
legend: { textStyle: { color: "#8892a3" } }, legend: { top: 0, textStyle: { color: "#8892a3" } },
xAxis: { ...base.xAxis, data: budget.map(r => String(r.period)) }, xAxis: {
...base.xAxis,
data: budget.map(r => String(r.period).slice(0, 10))
},
series: [ series: [
["已结算", "used"], ["已结算", "used"],
["预占", "reserved"] ["预占", "reserved"]