Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Viewing a saved revision (read-only)

a5dff16facb04655a9608eb633a587be

Making a bar chart

0 stars0🌍 Public
Aarths-glitch
Last edited May 21, 2020
Created on May 21, 2020
Forked from Making a bar chart

A horizontal bar chart displays population estimates for the ten most populous countries, with bars extending left-to-right from a shared origin. The visualization uses D3 v5’s `scaleLinear` for bar widths and `scaleBand` for country labels along the y-axis. Data is loaded from a CSV file via `d3.csv`, and each population value is multiplied by 1,000 before rendering. The resulting SVG bars are appended using `selectAll` and `enter().append('rect')`, with fill colors left at their default black.

AI-generated description