This video is available to students only

Making a Bar Chart

Next, we embark on a mission to create a slightly more complex chart: a bar chart. We talk about what we can learn from a bar chart, and what a histogram is.

Making a Bar Chart#

We'll walk through one last "basic" chart — once finished, you'll feel very comfortable with each step and we'll move on to even more exciting concepts like animations and interactions.

Deciding the chart type#

Another type of question that we can ask our dataset is: what does the distribution of a metric look like? For example:

  • What kinds of humidity values do we have?

  • Does the humidity level generally stay around one value, with a few very humid days and a few very dry days?

  • Does it vary consistently, with no standard value?

  • Or are there really humid days and really dry days, with none in-between?

Looking at the scatter plot we just made, we can see the daily humidity values from the dots' vertical placement.

Finished scatter plot

But it's hard to answer our questions - do most of our dots fall close the middle of the chart? We're not entirely sure.


This page is a preview of Fullstack D3 Masterclass

No discussions yet