Fork of React & D3 Starter
✓ Published0🌍 Public
This visualization is a scatter plot of the Iris dataset, showing the relationship between sepal length and petal length. It is built using a React front-end with a D3.js backend, where React manages the SVG canvas and D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` functions handle the scaling and axes. The code demonstrates a decoupled architecture, using a `useData` hook to load CSV data and a `viz` function to render circles and axes, highlighting a pattern for scaling complexity in 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