| @@ -5119,8 +5119,7 @@ function initChartsNpu() { | |||||
| name: '时间(min)' | name: '时间(min)' | ||||
| }, | }, | ||||
| yAxis: { | yAxis: { | ||||
| min: 0, | |||||
| max: 100, | |||||
| show: true, | show: true, | ||||
| name: '占有率(%)', | name: '占有率(%)', | ||||
| axisLine: { | axisLine: { | ||||
| @@ -5162,7 +5161,7 @@ function initChartsNpu() { | |||||
| return seriesOption | return seriesOption | ||||
| }) | }) | ||||
| let xLength = res.MetricsInfo[0].value.length | 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.legend.data = legenData | ||||
| options.series = seriesData | options.series = seriesData | ||||
| options && myCharts.setOption(options); | options && myCharts.setOption(options); | ||||