score:1

here is how:

yaxis: {
            allowdecimals: false,
            min: 0,
            title: {
                text: 'number of fruits'
            },
            stacklabels: {
                enabled: true,
                style: {
                    fontweight: 'bold',
                    color:'gray'
                }
            }

        },

score:31

you have to use stacklabels. you missed it in your code. you can find it in yaxis -> stacklabels

 stacklabels: {
    enabled: true,
    style: {
        fontweight: 'bold',
        color:'gray'
    }
 }

Related Query

More Query from same tag