Reusable D3 Scatterplot
✓ Published1🌍 Public
This example shows an animated scatterplot of the Iris dataset, with circles positioned by petal width on both axes. Built as a reusable D3 component, it renders SVG circles with a staggered transition on update, growing from radius zero on initial entry. The plot uses `scaleLinear` and `scalePoint` for positioning, with `axisLeft` and `axisBottom` for axes. The code loads CSV data via `d3.csv`, applies numeric parsing, and configures margins and radius through a chainable API, with styles setting circle opacity and tick font sizes.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed