Skip to content Skip to sidebar Skip to footer

Add Total Count Inside Stack Labels Grouped Stacked Column Chart- Highcharts

I have a stacked grouped column highcharts like http://jsfiddle.net/d_paul/d9yb1yy1/ currently in stackLabels I'm adding the stack name, now I am trying to add the total count of a

Solution 1:

You can add stack-total values by stack labels and try to use the grouped_categories plugin to add the stack name.

    xAxis: {
        categories: [{
            name: 'category1',
            categories: ['A', 'B']
        }, {
            name: 'category2',
            categories: ['C', 'D']
        }]
    }

Live demo:http://jsfiddle.net/BlackLabel/L0pko9h5/

Docs:https://blacklabel.github.io/grouped_categories/


The other way is to use Highcharts.SVGRenderer class and manually render the labels.

API Reference:https://api.highcharts.com/class-reference/Highcharts.SVGRenderer#text

Post a Comment for "Add Total Count Inside Stack Labels Grouped Stacked Column Chart- Highcharts"