score:1

Accepted answer

you need to enable usehtml.

    stacklabels: {
        style: {
            backgroundcolor: 'rgba(252, 255, 197, 0.7)',    
            color: 'black',
            borderwidth: 1
        },
        enabled: true,
        usehtml: true
    }

score:1

with formatter and enable usehtml

`

     yaxis:{  stacklabels: {
            style: {
                color: 'black'
            },
            enabled: true,
            usehtml: true,
            formatter: function() {
                 return '<span style="background-color:red">' + this.total + '</span>';
            }
        }
    },`

Related Query

More Query from same tag