diff --git a/web_src/js/index.js b/web_src/js/index.js index a6645d7cd..11bb9835d 100755 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -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);