Group-View: Stacked vs. Side-by-side Charts
You can view compared data groups (such as by gender) using stacked or side-by-side charts.
- Stacked charts shows each compared group stacked on each other. The groups do not overlap, so it is easier observe overall trends, and combined group totals.
- Side-by-by charts shows each compared group on the same baseline. This can improve making one-to-one comparison between data groups.
You can switch the mode with just a single click, and use relative distributions with both options. All aggregate charts in a dashboard use the same group view mode.
How can you enable side-by-side or stacked charts?
- Click on the icon next to the compared summary on the top panel of the dashboard, or
- Use the dashboards config panel, via the gear icon on upper-left dashboard corner.
Breakdown of trends across quadrants (regions) in a dataset of homicides.
Breakdown of trends across quadrants, using their relative distribution across race & time.
When can you use stacked charts?
Keshif helps you prevent misleading data analysis when stacking selections would be inaccurate or inappropriate.
- The aggregation function should not be "average".
Example: You cannot stack "average-age" of males and females.
- The aggregation function should not be "total/sum" with a metric that includes negative values.
Example: You cannot stack "total-temperature", as temperature may be negative.
- The compared attribute cannot be a multi-valued categorical attribute.
Example: You cannot stack "people who like apples" and "people who like oranges". There are some people who like both, so their stacked (combined) sum will be incorrect for analysis.