🌍 Public
Viewing a saved revision (read-only)
7d5dc9291b674db3a55331aa91912fe5
Fork of Let's make a Bar Graph with D3.js
This example shows a horizontal bar chart of the world’s ten most populous countries, using population values from a CSV file. It renders SVG bars with a linear scale for population and a band scale for country names, adding axis labels via `axisLeft` and `axisBottom`. The code imports `select`, `csv`, `scaleLinear`, `scaleBand`, `max`, and the axis functions from D3 v7, and transforms the raw population numbers by multiplying by 1000 before drawing.
AI-generated description