D3 Scatter Plot Basic
✓ Published1🌍 Public
This example shows the world’s ten most populous countries as circles in a horizontally-oriented scatter plot, with each circle’s x-position mapped to population via `d3.scaleLinear` and its y-position to country name via `d3.scaleBand`. The SVG chart uses `d3.csv` to load population data, then applies a transition that animates the circles sliding rightward from the left edge. Axis labels and a title are added using `d3.axisBottom`, `d3.axisLeft`, and manual text elements, with tick formatting through `d3.format` to abbreviate large numbers. The chart is built in React with D3 v5.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed