Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Barchart

Public visualization

Viewing a saved revision (read-only)

97cea7ff6ec847cf9d5538ffe9657f5a

Barchart

0 stars1🌍 Public
Aases1996
Last edited May 11, 2020
Created on May 11, 2020
Forked from Barchart

A horizontal barchart displays the population of China, India, and the United States, with each country’s bar length proportional to its population value. The SVG chart is built using D3 v5, with `scaleLinear` mapping population counts to pixel widths and `scaleBand` positioning categories along the y-axis. Data is loaded from a CSV file via `d3.csv`, and axes are generated using `axisLeft` and `axisBottom`. Bars are rendered as SVG `rect` elements, with a steelblue fill applied through CSS.

AI-generated description