Bar Charts

Learn how to draw bar charts for data visualisation in D3.

Bar charts

A bar chart is a visual representation using either horizontal or vertical bars to show comparisons between discrete categories. There are a number of variations of bar charts including stacked, grouped, horizontal, and vertical.

We will work through a simple vertical bar chart that uses a value on the y-axis and a category in the form of a name on the x-axis.

The end result will look like this:

Get hands-on with 1200+ tech skills courses.