🌍 Public
Viewing a saved revision (read-only)
b66ff713904e4652a3b7a1a7bc3ce863
Making a bar chart
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 descriptionSimple "low-level" bar chart implementation/tutorial