diff --git a/mindinsight/ui/src/views/train-manage/histogram.vue b/mindinsight/ui/src/views/train-manage/histogram.vue index 3afff3e13fe0c76a15459feebd40f344d0dabf78..3bdbe618ca03fa2ef9810167abc5105ab00293a6 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,