Activity6_1
✓ Published0🌍 Public
This example shows a horizontal bar chart of 2020 population data for 30 countries, with green bars representing each nation’s population sorted by country name. The visualization uses React to render SVG elements, with D3 v5’s `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and `format` to abbreviate tick labels. Data is loaded asynchronously via D3’s `csv` parser from a GitHub-hosted dataset, and axes are constructed with custom React components that map D3 scales to SVG lines and text.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed