Dónal
Dónal

Reputation: 187499

HighCharts remove stack totals

I'm creating a stacked bar chart just like this one. Notice that the total of each stack is displayed at the top, how can I disable/hide this?

Upvotes: 9

Views: 5523

Answers (1)

Luca Filosofi
Luca Filosofi

Reputation: 31173

yAxis: {
    min: 0,
    title: {
        text: 'Total fruit consumption'
    },
    stackLabels: {
        enabled: false,
        style: {
            fontWeight: 'bold',
            color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
        }
    }
},

you need to turn the stackLabels to false like in the example above

stackLabels: {
            enabled: true,

Upvotes: 16

Related Questions