Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

d0692225b594426d8145382b7fc6ee2b

Making a Bar Chart

0 stars1🌍 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]