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 Articles