activity 7
✓ Published0🌍 Public
This example shows the top 30 most populous countries in 2020 as a horizontal bar chart, with each bar’s length encoding population and a native SVG `<title>` element providing hover tooltips. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and `format('.2s')` to abbreviate tick labels (e.g., “1.2B”). The data is loaded asynchronously from a CSV file using D3’s `csv` function, and axes are rendered as custom SVG components.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed