Fork of Fork of Activity 6_Task 1
✓ Published0🌍 Public
This example shows a horizontal bar chart of population totals for 30 countries in 2020. The chart uses React to render SVG elements, with D3’s `scaleBand` and `scaleLinear` mapping country names to bar positions and population values to bar widths. Axes are generated by custom React components (`AxisBottom`, `AxisLeft`) that call `xScale.ticks()`. Tooltips appear via SVG `<title>` elements, and population data is loaded from a remote CSV using D3’s `csv` function.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed