fix(growth): 修复图表图例与日期标签布局 #31
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user