🌍 Public
Viewing a saved revision (read-only)
5a3f950f612547f7a7b85aaee022829c
Making a Bar Chart
This horizontal bar chart displays the populations of the world’s ten most populous countries, with China and India leading by a wide margin. Built with D3 v6 in a React framework, it uses `d3.csv` to load population data, `scaleLinear` and `scaleBand` for positioning, and `axisLeft` and `axisBottom` for labeled axes. SVG rectangles are rendered per country, with the data values multiplied by 1000 to reflect actual population figures, and styled with a steelblue fill.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.