Skip to main content
100%

D3 scatter plot with react

✓ Published0🌍 Public
JJulien Tremblay
Last edited Oct 30, 2024
Created on Oct 25, 2024
Forked from React starter

This React-based scatter plot demonstrates animated data updates with D3.js. The visualization renders seven circles with distinct colors and sizes, positioned by x/y coordinates, with axes labeled X and Y. Data updates trigger a button click, which initiates D3 transitions using `transition().duration(1000).ease(easeLinear)` for enter animations and faster transitions for updates, while exit animations shrink circles to zero radius. The SVG rendering uses `scaleLinear`, `axisBottom`, `axisLeft`, and `selectAll('circle').join()` for binding data to DOM elements.

AI-generated description

React starter code

MIT Licensed

Similar vizzes