how to display y-axis value to integers only in jqplot

unknown picture unknown · Nov 4, 2011 · Viewed 9.9k times · Source

How do i make the value of y-axis into integer?

i currently have this value 0.0 1.0 1.5 2.0 2.5 3.0. i want to change it to some thing like this 0 1 2 3 etc....

thank you! cheers!

Answer

Soulbe picture Soulbe · Aug 21, 2012

if i understand what you want, is to display in y axis integer values.

Try this,

axesDefaults: 
{ 
    min: 0,  
    tickInterval: 1, 
    tickOptions: { 
            formatString: '%d' 
        } 
}