mschermann / data_viz_reader

A Reader on Data Visualization
https://mschermann.github.io/data_viz_reader/
Creative Commons Attribution Share Alike 4.0 International
19 stars 17 forks source link

Section 2.2.2.1.3, duplicate graph #1520

Open AayushiVAgrawal opened 5 years ago

AayushiVAgrawal commented 5 years ago

Stacked Bar Chart and Side by Side Bar chart shows same graph

Stacked Bar Chart : A better option for visualizing the parts-to-whole relations of a data set is the bar chart. This is because it lets us compare the different objects by their length, which is one dimensional. Comparing objects along one dimension is a lot easier than along two, which makes comparing the length of bars a lot easier than the areas of pie slices. Stacked bar chart shows data in categories that are also stratified into sub-categories. In the example below we have sum of sales by product type and further divided into region. It allows us to see more details than the regular bar chart would provide.

(Source: [@Charts_CheatSheet])

Side by Side Bar Chart : Similar to bar charts, this chart shows a side by side comparison of data. In the below example we are looking at regions and types of product (decaf vs. regular). The use of color makes it easier to compare the sum of sales within each region for different product types. The side-by-side bar chart is similar to the stacked bar chart except the bars are un-stacked and put the bars side by side along the horizontal axis.

(Source: [@Charts_CheatSheet])