Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

3fb29139b54c44ac9b877963e530a4ba

Making a Bar Chart

0 stars0🌍 Public
Jjmarcrum3
Last edited Jan 19, 2020
Created on Jan 18, 2020

This example visualizes the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects 2017. A static SVG bar chart displays countries along the vertical axis and population values along the horizontal axis, with steelblue bars sized by `d3.scaleLinear` and `d3.scaleBand`. The code loads data from a CSV file via `d3.csv`, converts population figures, and renders axes with `d3.axisLeft` and `d3.axisBottom`.

AI-generated description

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