Fork of React & D3 Starter
✓ Published0🌍 Public
This scatter plot visualizes the Iris dataset, mapping sepal length on the x-axis and petal length on the y-axis. The visualization is built with React 18 and D3 v7, using a decoupled pattern where the `VizWrapper` component manages the SVG lifecycle while the `viz` function handles D3 scales, axes, and circle rendering. Data loading occurs through a custom `useData` hook that parses the CSV file, and the chart renders responsive to the full browser window. The example demonstrates scalable integration of React and D3 for real-world projects.
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