Making a bar chart
✓ Published1🌍 Public
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
MIT Licensed