Skip to main content
100%

Making a bar chart

✓ Published1🌍 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)

MIT Licensed

Similar vizzes