Skip to main content
100%

Making a bar chart

✓ Published1🌍 Public
Ccyro666
Last edited Mar 17, 2020
Created on Mar 17, 2020

A horizontal bar chart displays population estimates for ten countries, sourced from a local CSV file (data.csv), with each bar’s length proportional to population. The implementation uses D3 v5’s `scaleLinear` and `scaleBand` to map values to SVG rectangles, alongside `axisLeft` and `axisBottom` for labeled axes. Data is loaded via `d3.csv`, with population values converted to numbers and multiplied by 1000 before rendering. The chart is drawn entirely in SVG, styled with steel-blue bars.

AI-generated description

Simple "low-level" bar chart implementation/tutorial

MIT Licensed

Similar vizzes