diff --git a/src/views/digital/growth-charts.vue b/src/views/digital/growth-charts.vue index 1b45193..10df3ed 100644 --- a/src/views/digital/growth-charts.vue +++ b/src/views/digital/growth-charts.vue @@ -159,7 +159,7 @@ function options(): EChartsCoreOption[] { }, { ...base, - legend: { textStyle: { color: "#8892a3" } }, + legend: { top: 0, textStyle: { color: "#8892a3" } }, xAxis: { ...base.xAxis, data: experiments.map(r => `v${r.revision} · ${r.variant}`) @@ -184,8 +184,11 @@ function options(): EChartsCoreOption[] { }, { ...base, - legend: { textStyle: { color: "#8892a3" } }, - xAxis: { ...base.xAxis, data: budget.map(r => String(r.period)) }, + legend: { top: 0, textStyle: { color: "#8892a3" } }, + xAxis: { + ...base.xAxis, + data: budget.map(r => String(r.period).slice(0, 10)) + }, series: [ ["已结算", "used"], ["预占", "reserved"]