Activity 7
✓ Published0🌍 Public
This example shows a horizontal bar chart of population data for 20 countries in 2020, with bars arranged by country and length proportional to population. The visualization uses React with D3 v5's `scaleBand` and `scaleLinear` to map data to SVG rectangles, with axes rendered via custom `AxisBottom` and `AxisLeft` components that use D3’s `format` function to abbreviate large numbers. The data is loaded asynchronously from a CSV file using D3’s `csv` method, and interactive tooltips display the formatted population value on hover.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed