Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
Ffarmanali0303
Last edited Jul 27, 2020
Created on Jul 26, 2020
Forked from HTML Starter

This bar chart displays the population of the world’s most populous countries, ranked vertically from China to Slovenia, with horizontal bars indicating relative population sizes. It uses D3 v5’s `scaleLinear` and `scaleBand` to map population values and country names, respectively, while rendering as SVG. The code loads CSV data via `d3.csv`, applies a custom tick formatter to abbreviate large numbers (e.g., converting billions), and styles bars with steelblue fill.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes