From e37a6f45cd43fb4659e2b5a9c65ce81a73bd2fad Mon Sep 17 00:00:00 2001 From: ph Date: Thu, 23 Apr 2020 21:52:01 +0800 Subject: [PATCH] update --- mindinsight/ui/src/views/train-manage/histogram.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,