-
在使用g2plot折线图的时候,二条折线图,隐藏某一条会出现附件图片1所示问题,即y轴出现多个小数点。我检查了后端返回的数据(附件可以看下图片1接口返回,取得是value的值,全都保留了一位小数点)。只显示另外一条线的话,图表展示没有问题,具体可以查看图片2。我前端的配置在图片3.麻烦帮忙看下是啥原因导致的,我没有找到官方文档的相关配置,谢谢啦。 |
Beta Was this translation helpful? Give feedback.
Answered by
xujaibo
Jan 30, 2023
Replies: 3 comments
-
希望有遇到同样情况的伙伴帮忙看下 |
Beta Was this translation helpful? Give feedback.
0 replies
-
设置了坐标轴的label的precision:number 标签精度,配置为 2,也不起作用 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hustcc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
最后设置成这样才可以,但是其实后端返回的数据已经是保留了二位小数得了,具体可以看上图