score:2

Accepted answer

the answer you're looking for is the allowdecimals boolean:

yaxis: {
    allowdecimals : false,
    /* completely irrelevant stuff follows... */
    title: {
        text: 'it\'s the y-axis'
    },
    plotlines: [{
        value: 0,
        width: 1,
        color: '#808080'
    }]
},

with allowdecimals: false.

yaxis: {
    allowdecimals : true, // though it defaults to 'true' anyway...
    /* other stuff... */
},

and the same graph with allowdecimals: true.

references:


Related Query

More Query from same tag