Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Viewing a saved revision (read-only)

8f8c824d8b6c4da19883701e96a65223

Making a bar chart

0 stars1🌍 Public
CChristine Lanser
Last edited Sep 30, 2020
Created on Sep 29, 2020
Forked from Smily Face

This example shows the population of ten countries in 2018, ordered by rank in a horizontal bar chart using SVG. The chart loads data from a CSV file and scales the bars with d3.scaleLinear and d3.scaleBand, while rendering axes via d3.axisLeft and d3.axisBottom. Population values are multiplied by 1,000 in the data-loading step, and the bars are styled with steelblue fill. Data originates from the United Nations.

AI-generated description

This shows population 2018,

united nations (include link)