• Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Theme Selection
Mode Selection
*Translated by Google Translator.
Essential Studio
All Controls

Example of Stacked Bar in ASP.NET Core Chart Control

This sample visualizes sales comparison of different fruits with default stacked bar series in chart. Legend in the sample shows the information about the series.


In this example, you can see how to render and configure the stacking bar type charts. Stacks the points in the series horizontally and also you can use the stackingGroup property to group the stacking collection based on categories. You can use border and fill properties to customize the vertical bar. dataLabel is used to represent individual data and its value.

Tooltip is enabled in this example. To see the tooltip in action, hover a point or tap on a point in touch enabled devices.

More information on the stacking bar series can be found in this documentation section.