Fork of React & D3 Starter
✓ Published1🌍 Public
This visualization displays the classic Iris flower dataset as a scatter plot, plotting sepal length against petal length. It demonstrates a decoupled integration of React and D3, where the React component manages the SVG element lifecycle while D3 handles the rendering logic. The code uses D3's `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs to compute scales and draw axes, with React hooks managing data loading via `useData`.
AI-generated descriptionThis viz is a starter that demonstrates patterns used in real world projects in which complexity is anticipated to scale.
- Decoupled React & D3 integration
- Opening moves for scalable complexity
- Industry standard ES modules and JSX
- Copy-paste into existing projects
Any questions? Ask on Twitter!
Also viewable in:
MIT Licensed