All Components


    Bar Charts / Stacked and grouped bars


    In general, the data series in a stacked column or bar chart have one stack per category. There are cases in which you might want to arrange your data so that the chart appears to have more than one stack per category, i.e. grouping the stacks.

    In this demo you can see how to group stacked columns to display the World population compared by age and sex in a specific period of time by setting the series -> stack option, which applies the name of the stack that the series belong to (Male or Female in this sample)

    HTML5/JavaScript source

    Also available for:

    API Reference
    • grouped-stacked-bar.html
    • Widget configuration

    Support & learning resources

    Bar Charts for other technologies