Browse Source

fix issue

tags/v1.22.6.1^2
Gitea 3 years ago
parent
commit
10149225ba
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      web_src/js/index.js

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

@@ -5119,8 +5119,7 @@ function initChartsNpu() {
name: '时间(min)'
},
yAxis: {
min: 0,
max: 100,

show: true,
name: '占有率(%)',
axisLine: {
@@ -5162,7 +5161,7 @@ function initChartsNpu() {
return seriesOption
})
let xLength = res.MetricsInfo[0].value.length
options.xAxis.data = Array.from({ length: xLength }, (_, index) => index + 1)
options.xAxis.data = Array.from({ length: xLength }, (_, index) => index)
options.legend.data = legenData
options.series = seriesData
options && myCharts.setOption(options);


Loading…
Cancel
Save