Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 698
Dónal Avatar asked Apr 05 '12 14:04

Dónal


1 Answers

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,
like image 165
Luca Filosofi Avatar answered Oct 22 '22 03:10

Luca Filosofi