Skip to main content
100%

10. Animated reusable d3 scatterplot

✓ Published1🌍 Public
Kktshim@snu.ac.kr
Last edited Nov 7, 2022
Created on Nov 7, 2022
Forked from 10. Dynamic Charts

This example shows an animated, reusable D3.js scatterplot built with React and rendered as SVG. It cycles through four Iris flower measurements—petal width, sepal width, petal length, and sepal length—every three seconds, transitioning point positions and axis scales smoothly over one second. D3 v7 APIs such as `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and `transition` handle the updates, while the chart is configured through a custom `scatterPlot()` function that accepts setters for data, dimensions, and margin. Data comes from a CSV loaded via `d3.csv`.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes