Skip to main content
100%

Making a barchart

✓ Published1🌍 Public
Ccornshoots
Last edited Mar 22, 2021
Created on Mar 12, 2021
Forked from Making a face

This bar chart displays the populations of the world’s ten most populous countries, sorted in descending order from China to Mexico. A linear scale maps population values to bar widths, while a band scale positions each country along the vertical axis. The chart renders as SVG using d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom, with data loaded from a CSV file via d3.csv and population values converted to thousands.

AI-generated description
MIT Licensed

Similar vizzes