All Components
Theme

Themes

    Bar Charts / Stacked bars

    Description

    A Stacked bar is a bar divided into subparts to show cumulative effect, to display money distribution or production against time. You can easily enable the stack feature through the SeriesDefaults -> Bar -> Stack(true) setting:

    .SeriesDefaults(series => series.Bar().Stack(true))

    For more information inspect the SeriesDefaults option in the documentation.

    ASP.NET MVC source

    Also available for:

    • stacked_bar.cshtml
    • Stacked_BarController.cs

    Support & learning resources

    Bar Charts for other technologies