Skip to main content
100%

Making a bar chart

✓ Published0🌍 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
MIT Licensed

Similar vizzes