Activity 6
✓ Published0🌍 Public
This example shows the 2020 population for 30 countries as a horizontal bar chart built with React and D3 v5, rendered as SVG. The code uses `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `format('.2s')` to abbreviate tick labels (e.g., converting G to B). Data is loaded asynchronously from a remote CSV via D3’s `csv` method, with the axis and marks defined as reusable React components.
AI-generated descriptionMIT Licensed