jqPlot ticks without decimals

a 夏天 提交于 2019-12-08 19:42:20

问题


I am using jqplot, and it gets marks by default like this:

What should I do to get it without .0 at the end?


回答1:


Since it was indeed the answer I'll post it as an actual one.

With stringFormat, you can format the string of the axis labels, and it uses sprintf notation, where %d is a signed integer. Since integers do not have decimals, it is probably what you want.



来源:https://stackoverflow.com/questions/7792087/jqplot-ticks-without-decimals

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!