Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jqPlot ticks without decimals

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

jqplot screenshot

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

like image 866
EK. Avatar asked Oct 17 '11 09:10

EK.


1 Answers

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.

like image 131
pimvdb Avatar answered Oct 10 '22 22:10

pimvdb