|
|
@@ -5086,7 +5086,7 @@ function initChartsNpu() { |
|
|
|
axisLabel: { |
|
|
|
interval: "auto", |
|
|
|
}, |
|
|
|
name: "时间(min)", |
|
|
|
name: "", |
|
|
|
}, |
|
|
|
yAxis: { |
|
|
|
show: true, |
|
|
@@ -5142,7 +5142,9 @@ function initChartsNpu() { |
|
|
|
}; |
|
|
|
return seriesOption; |
|
|
|
}); |
|
|
|
let xAxisValue = res.Interval === 1 ? "时间(min)" : "时间(hour)"; |
|
|
|
let xLength = res.MetricsInfo[0].value.length; |
|
|
|
options.xAxis.name = xAxisValue; |
|
|
|
options.xAxis.data = Array.from( |
|
|
|
{ length: xLength }, |
|
|
|
(_, index) => index |
|
|
|