Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Collapse]Chart Control
   [Expand]Getting Started
   [Collapse]Fundamentals
    [Expand]Charting Basics
    [Expand]Professional Charting
    [Collapse]Series Views
     [Expand]2D Series Views
     [Collapse]3D Series Views
      [Expand]Area Series Views
      [Collapse]Bar Series Views
        Side-by-Side Bar Chart
        Side-by-Side Stacked Bar Chart
        Side-by-Side Full-Stacked Bar Chart
        Stacked Bar Chart
        Full-Stacked Bar Chart
        Manhattan Bar Chart
      [Expand]Pie and Donut Series Views
      [Expand]Line Series Views
       Funnel Series View
      Series Views Compatibility
    [Expand]Chart Elements
   [Expand]Providing Data
   [Expand]Appearance Customization
   [Expand]End-User Features
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Additional Resources
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Stacked Bar Chart

Expanded Short Description

The Stacked Bar Chart is represented by the StackedBar3DSeriesView object, which belongs to Bar Series Views. This view displays all points from different series, but with the same argument, stacked in a single bar (for instance, this is useful to show that each bar represents a particular category). So, the height of each bar is determined by the total of all the series values for the category.

A Stacked Bar chart is shown in the image below.

Note

A Stacked Bar chart can display series containing data points with positive or negative values. However, a series with positive values is stacked only with other series containing positive values; and a series with negative values is stacked with other series containing negative values.

Note that if a series contains data points with both positive and negative values, it is treated as a series with positive values, while all its negative values are treated as zeros.

Expanded Chart Type Characteristics

The table below lists the main characteristics of this chart type.

Feature

Value

Series View type StackedBar3DSeriesView
Diagram type XYDiagram3D
Number of arguments per series point 1
Number of values per series point 1
Note

For information on which chart types can be combined with the Stacked Bar Chart, refer to the Series Views Compatibility document.

Expanded Example

The following example demonstrates how to create a ChartControl with two series of the StackedBar3DSeriesView type, set their general properties, and add this chart to a form at runtime. Before proceeding with this example, first create a Windows Forms Application in Visual Studio, and include all necessary assemblies to the References list of your project.

Then, add the following code to the Form.Load event handler.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E1038.

Expanded See Also

How would you rate this topic?​​​​​​​