This commit is contained in:
Fine 2025-01-13 16:30:40 +08:00
parent a607b6710d
commit 77f9100ec4

View File

@ -77,7 +77,7 @@ limitations under the License. -->
for (const item of metric.values) { for (const item of metric.values) {
series.push({ series.push({
data: item.values.map((item: number, itemIndex: number) => [props.intervalTime[itemIndex], item]), data: item.values.map((item: number, itemIndex: number) => [props.intervalTime[itemIndex], item]),
name: item.name, name: item.name || metric.name,
type: "line", type: "line",
symbol: "circle", symbol: "circle",
symbolSize: 4, symbolSize: 4,
@ -113,6 +113,7 @@ limitations under the License. -->
link: { xAxisIndex: "all" }, link: { xAxisIndex: "all" },
}, },
legend: { legend: {
show: grid.length > 1,
type: "scroll", type: "scroll",
icon: "circle", icon: "circle",
top: -5, top: -5,