diff --git a/mindinsight/ui/src/views/train-manage/histogram.vue b/mindinsight/ui/src/views/train-manage/histogram.vue index 3afff3e1..3bdbe618 100644 --- a/mindinsight/ui/src/views/train-manage/histogram.vue +++ b/mindinsight/ui/src/views/train-manage/histogram.vue @@ -799,7 +799,10 @@ export default { this.zrDrawElement.tooltipX = new echarts.graphic.Text({ position: [itemX, gridRect.y + gridRect.height], style: { - text: Math.round(x * 1000) / 1000, + text: + x.toString().length >= 6 + ? x.toExponential(3) + : Math.round(x * 1000) / 1000, textFill: '#fff', textAlign: 'center', fontSize: 12,