diff --git a/mindinsight/ui/src/components/scatter.vue b/mindinsight/ui/src/components/scatter.vue
index a169452a..fa67ce32 100644
--- a/mindinsight/ui/src/components/scatter.vue
+++ b/mindinsight/ui/src/components/scatter.vue
@@ -78,6 +78,7 @@ export default {
axisPointer: {
type: 'cross',
},
+ confine: true,
formatter: (params) => {
const dataIndex = params.dataIndex;
const item = this.tooltipsData[dataIndex];
@@ -94,11 +95,10 @@ export default {
Math.pow(10, 4);
}
}
- res +=
- '
' + obj[i] + ':' + ' ' + item[obj[i]] + '
';
+ res += `${obj[i]}: ${item[obj[i]]}
`;
}
}
- return res;
+ return `${res}
`;
},
},
xAxis: {
@@ -205,4 +205,9 @@ export default {
.scatter {
height: 100%;
}
+.tooltip-msg {
+ white-space: normal;
+ word-break: break-all;
+ max-width: 250px;
+}
diff --git a/mindinsight/ui/src/mixins/modelData.vue b/mindinsight/ui/src/mixins/modelData.vue
index d8b72725..a8c59448 100644
--- a/mindinsight/ui/src/mixins/modelData.vue
+++ b/mindinsight/ui/src/mixins/modelData.vue
@@ -168,6 +168,7 @@ export default {
axisPointer: {
type: 'shadow',
},
+ confine: true,
formatter: this.barToolTipFormatter,
},
label: {
diff --git a/mindinsight/ui/src/views/train-manage/model-traceback.vue b/mindinsight/ui/src/views/train-manage/model-traceback.vue
index 6489ee89..60c235af 100644
--- a/mindinsight/ui/src/views/train-manage/model-traceback.vue
+++ b/mindinsight/ui/src/views/train-manage/model-traceback.vue
@@ -2042,6 +2042,7 @@ export default {
border-bottom: 1px solid #b9bcc1;
border-top: 1px solid #b9bcc1;
padding: 10px 0;
+ overflow: hidden;
.bar-select {
display: flex;
flex: 1.35;
@@ -2091,7 +2092,7 @@ export default {
}
}
.left-scatters-container {
- overflow: auto;
+ overflow: hidden;
width: 100%;
height: calc(100% - 32px);
}
@@ -2204,6 +2205,7 @@ export default {
}
.tooltip-msg {
white-space: normal;
- max-width: 150px;
+ word-break: break-all;
+ max-width: 250px;
}