Browse Source

Merge branch 'V20220830' into fix-2546

tags/v1.22.8.2^2
chenshihai 3 years ago
parent
commit
6516999de7
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      web_src/js/index.js

+ 3
- 1
web_src/js/index.js View File

@@ -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


Loading…
Cancel
Save