Bar charts are used to compare categorical data through horizontal bars. The length of each bar represents the value of the corresponding category. The data displayed in columns or rows of a worksheet can be plotted in a bar chart. In these charts, the categories are organized along the vertical axis, where the data values are displayed along the horizontal axis.
Spread for WPF supports the following types of bar charts.
Sample Image | Description |
![]() |
ChartType.BarClustered Represents a clustered bar chart. |
![]() |
ChartType.BarStacked Represents a stacked bar chart. |
![]() |
ChartType.BarStacked100 Represents a 100% stacked bar chart. |
![]() |
ChartType.Bar3DClustered Represents a clustered 3D bar chart. |
![]() |
ChartType.Bar3DStacked Represents a stacked 3D bar chart. |
![]() |
ChartType.Bar3DStacked100 Represents a 100% stacked 3D bar chart. |
Using Code
Refer to the following example code to add a bar chart.