Skip to main content
100%

Making a Bar Chart

✓ Published2🌍 Public
HHan Jinseok
Last edited Mar 10, 2021
Created on Mar 10, 2021
Forked from D3 Starter

A horizontal bar chart displays population estimates for 27 countries, sorted by decreasing size from China to South Korea. The visualization uses D3 v6 with `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to map population values to bar widths and country names to row positions. Data loads from `data.csv`, multiplies each population value by 1,000, and renders steelblue SVG rectangles on a 960×500 canvas with fixed margins and a left-aligned label axis.

AI-generated description
MIT Licensed

Similar vizzes