This commit is contained in:
2025-09-12 08:22:28 +08:00
parent f3b79dc883
commit 21c5be3121
3 changed files with 34 additions and 117 deletions

View File

@@ -65,7 +65,9 @@ option_1_1 = {
type: "line",
yAxisIndex: 1,
data: [],
tooltip: { valueFormatter: (v) => typeof v === "number" ? v + " 万人" : v },
tooltip: {
valueFormatter: (v) => (typeof v === "number" ? v + " 万人" : v),
},
},
],
};
@@ -100,8 +102,14 @@ option_1_2 = {
},
],
yAxis: [
{ type: "value", axisLabel: { formatter: "{value}", color: "#fff" } },
{ type: "value", axisLabel: { formatter: "{value}", color: "#fff" } },
{
type: "value",
axisLabel: { formatter: "{value}", color: "#fff" },
},
{
type: "value",
axisLabel: { formatter: "{value}", color: "#fff" },
},
],
series: [
{
@@ -137,7 +145,9 @@ option_1_2 = {
type: "line",
yAxisIndex: 1,
data: [],
tooltip: { valueFormatter: (v) => typeof v === "number" ? v + " 万人" : v },
tooltip: {
valueFormatter: (v) => (typeof v === "number" ? v + " 万人" : v),
},
},
],
};