Skip to main content
100%

D3 Bar Chart

✓ Published1🌍 Public
Aadbirch
Last edited Jan 26, 2023
Created on Jan 20, 2023
Forked from D3 Intro

This D3 bar chart displays the populations of the ten most populous countries, using horizontal bars sorted by y-axis labels. The visualization maps population values to bar lengths via a linear scale and country names to band positions, with axes generated by `axisBottom` and `axisLeft`. It reads data from a CSV file (`data.csv`) containing country and population figures, multiplies the figures by 1,000, and renders the result as SVG rectangles with steel blue fill. The chart is built with d3.v7, using `scaleLinear` and `scaleBand` for scaling.

AI-generated description
MIT Licensed

Similar vizzes