Creating a stacked bar chart

Stacked bar charts, like regular bar charts, represent numeric values as segmented bars, and each bar is a specific, distinct category. The segments in the bar that are stacked on top of each other represent related values, and the total length of the bar represents the cumulative total of the related values for that category.

In this recipe, we will create a stacked bar chart that represents the top movies by year, further segmented by genre.

Creating a stacked bar chart

Getting ready

To follow this recipe, open B05527_01 – STARTER.twbx. Use the worksheet called Stacked Bar, and connect to the HollywoodMostProfitableStories data source.

How to do it... ...

Get Tableau 10 Business Intelligence Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.