Browse Source

Merge pull request '完善资源使用情况的图标显示和云脑II保持一致' (#2283) from show-npu-metric into V20220616

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/2283
Reviewed-by: liuzx <liuzx@pcl.ac.cn>
pull/2290/head
liuzx 3 years ago
parent
commit
5ecab4e98a
2 changed files with 3 additions and 4 deletions
  1. +1
    -1
      templates/repo/datasets/index.tmpl
  2. +2
    -3
      web_src/js/index.js

+ 1
- 1
templates/repo/datasets/index.tmpl View File

@@ -11,7 +11,7 @@

.dataset_title {
font-size: 14px;
max-width: 80%;
/* max-width: 80%; */
display: inline-block !important;
margin-left: 6px !important;
padding-right: 0 !important;


+ 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