While bar charts show comparisons among categories, CDP Data Visualization stacked bar charts show the bars divided into sub-parts. This demonstrates the cumulative effect of the component parts of a particular category.
This example uses the visual previously created in Bars. Clone it and make the changes to the duplicate visual.
To develop a stacked bar representation of European population,divided by its subregions, follow these steps.
Life Expectancyfrom the Y Axis shelf and
un_regionfrom the Colors shelf.
From Dimensions in the DATA menu, drag
un_subregionto the X Axis shelf.
Under Measures, select
populationand drop it to the Y Axis shelf.
Countryfrom the X Axis shelf to the Colors shelf.
On the Filters shelf, set
yearto 2010 and
Add all fields of interest to the Tooltips shelf.
For example, add
Adjust Display Format for the values on the main shelves of the
visual and in the Tooltip shelf.
For example, set the
gdp_per_capitato Currency, with $ symbol.
- Alias the fields on the shelves as UN Subregion, Population, GDP per
Capita, and so on:
- Click the field on the shelf of the visual to open the FIELD PROPERTIES menu.
- Open the Alias menu and enter the alias name of column in the textbox as it should appear in the visual.
Click the x icon at the top of the FIELD
PROPERTIES menu to close it.
The shelf now shows the column with its alias name.
Click REFRESH VISUAL.
The visual has changed. You can see the relative size of total populations for the subregions, and the component countries for all subregions.
If you hover the mouse over the graph, you can see the tooltip text for each
- Rename the visual.
- At the top left corner of the Dashboard Designer, click SAVE.