Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

8d16f744b39d47e98c760c6fbb2b2280

Making a Bar Chart

0 stars0🌍 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.