Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Ccledevoute
Last edited Jun 17, 2020
Created on Jun 16, 2020

This bar chart visualizes the populations of the top ten most populous countries, based on 2018 estimates from World Population Prospects 2017, with each bar’s length reflecting the population value. Using D3 v5, the code loads CSV data via `csv`, scales values with `scaleLinear` and `scaleBand`, and renders axes with `axisLeft` and `axisBottom`. The chart is drawn as an SVG, with bars styled in steelblue, and country labels positioned along the vertical axis.

AI-generated description

THis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in [World Population Prospects 2017]

MIT Licensed

Similar vizzes