Stacked Bar

Population: Age Structure
Data Estimate for 2020
0-14 years
15-64 years
65 years and older

Stacked bar series plot data as vertically stacked rectangular bars to visualize cumulative values (you must add more than one series of this type). Each bar series in a stacked bar chart uses the top of the previous series as its baseline. Follow the steps below to create stacked bar series:

  1. Use the DxChart.Data property to specify a data source.
  2. Add DxChartStackedBarSeries objects to chart markup. Each series can specify data used via the Data property.
  3. Use series ArgumentField and ValueField properties to specify data source fields that supply arguments and values (bars).
  4. Optional. Specify series Filter and SummaryMethod properties to filter and aggregate series values. This demo filters data by age group. It also groups arguments by country and calculates aggregate values using the Enumerable.Sum method.