Browse Source

fix issue

tags/v1.22.8.2^2
zhoupzh 3 years ago
parent
commit
9205593f66
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      web_src/js/index.js

+ 2
- 0
web_src/js/index.js View File

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