提交 e37a6f45 编写于 作者: P ph

update

上级 90ba14a9
...@@ -799,7 +799,10 @@ export default { ...@@ -799,7 +799,10 @@ export default {
this.zrDrawElement.tooltipX = new echarts.graphic.Text({ this.zrDrawElement.tooltipX = new echarts.graphic.Text({
position: [itemX, gridRect.y + gridRect.height], position: [itemX, gridRect.y + gridRect.height],
style: { style: {
text: Math.round(x * 1000) / 1000, text:
x.toString().length >= 6
? x.toExponential(3)
: Math.round(x * 1000) / 1000,
textFill: '#fff', textFill: '#fff',
textAlign: 'center', textAlign: 'center',
fontSize: 12, fontSize: 12,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册