Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Bbrett@cloudaccelerator.co
Last edited Aug 31, 2020
Created on Aug 31, 2020

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 description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes