Browse Source

!71 Optimize the horizontal coordinate precision of the histogram

Merge pull request !71 from 潘慧/master_ph
tags/v0.2.0-alpha
mindspore-ci-bot Gitee 6 years ago
parent
commit
cced14ff28
3 changed files with 16 additions and 4 deletions
  1. +4
    -0
      mindinsight/ui/src/views/train-manage/data-map.vue
  2. +6
    -2
      mindinsight/ui/src/views/train-manage/histogram.vue
  3. +6
    -2
      mindinsight/ui/src/views/train-manage/training-dashboard.vue

+ 4
- 0
mindinsight/ui/src/views/train-manage/data-map.vue View File

@@ -525,7 +525,11 @@ export default {
width: auto;
height: auto;
padding: 0;
.data-map-container {
width: 100%;
}
#sidebar {
top: 32px;
.node-info-con {
height: calc(100% - 280px);
}


+ 6
- 2
mindinsight/ui/src/views/train-manage/histogram.vue View File

@@ -1132,7 +1132,7 @@ export default {
const curAxisName = this.curAxisName;
const option = {
grid: {
left: 15,
left: 24,
top: 60,
right: 50,
bottom: 60,
@@ -1144,7 +1144,11 @@ export default {
axisLabel: {
fontSize: '11',
formatter: function(value) {
return Math.round(value * 100) / 100;
if (value.toString().length > 6) {
return value.toExponential(3);
} else {
return Math.round(value * 1000) / 1000;
}
},
},
splitLine: {show: false},


+ 6
- 2
mindinsight/ui/src/views/train-manage/training-dashboard.vue View File

@@ -897,7 +897,7 @@ export default {
});
const option = {
grid: {
left: 15,
left: 24,
top: 120,
right: 40,
bottom: 43,
@@ -909,7 +909,11 @@ export default {
axisLabel: {
fontSize: '11',
formatter: function(value) {
return Math.round(value * 100) / 100;
if (value.toString().length > 6) {
return value.toExponential(3);
} else {
return Math.round(value * 1000) / 1000;
}
},
},
splitLine: {show: false},


Loading…
Cancel
Save