提交 452e118c 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!73 UI support histogram visualization(6th commit)

Merge pull request !73 from 潘慧/master_ph
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册