Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

9a3e09ca24ed4995857bb28cd9ac60d2

Making a Bar Chart

0 stars2🌍 Public
HHeschmat
Last edited Dec 1, 2018
Created on Dec 1, 2018

This bar chart visualizes the populations of the top 10 most populous countries using 2018 United Nations data. It uses d3.scaleLinear for the x-axis population scale, d3.scaleBand for the categorical y-axis, and renders as SVG. The code loads data from a CSV via d3.csv, converts population values to thousands, and appends axis components with d3.axisLeft and d3.axisBottom to a transformed group.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.