One way to represent the third dimension of data is through stacking. In this way, a single bar on the chart can show data for more than one category of data. For example, a single bar can represent amount of sales for CD-ROM drives in one year on top of a bar representing sales for other years. Stacked bar charts can stack vertically or horizontally.
The following is an example of a vertical stacked bar chart.
The following is an example of a horizontal stacked bar chart.