Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a barchart

Public visualization

Viewing a saved revision (read-only)

4c286c4a632b46898d3938a02824db01

Making a barchart

0 stars1🌍 Public
VVeerle
Last edited Nov 10, 2020
Created on Nov 2, 2020

This bar chart displays the population of the ten most populous countries based on 2018 estimates from the World Population Prospects 2017 dataset. The SVG visualization uses d3.csv to load and parse the data, d3.scaleLinear for the population axis, and d3.scaleBand for the categorical country axis. Horizontal bars are rendered as SVG rectangles, with axes generated using d3.axisBottom and d3.axisLeft. d3.max determines the domain, while margin conventions and padding control layout and bar spacing.

AI-generated description

This barchart shows the population of the top 10 most populous countries. The data comes from the year 2018 estimate in World Population Prospects 2017.