Side-by-Side Full-Stacked Bar

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

Side-by-side full stacked bar series visualize data as percentages (you must add more than one series of this type). Vertically stacked rectangular bars are positioned next to one another to compare percentage contributions across different stacks. Within each stack, the total height of vertically stacked rectangular bars always equals 100% of the plot area. Follow the steps below to create side-by-side full stacked bar series:

  1. Use the DxChart.Data property to specify a data source.
  2. Add DxChartFullStackedBarSeries 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. Use the Stack property to create a side-by-side full stacked bar chart. This demo displays gender-specific stacks.
  5. 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.