Fork of React & D3 Starter
✓ Published0🌍 Public
This example demonstrates a decoupled React and D3 integration using a scatterplot of the Iris dataset. It shows the relationship between sepal length and petal length, with each flower represented as a semi-transparent circle. The visualization is rendered as SVG through React components, while D3's `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` handle the scaling and axes. Data is loaded asynchronously via the `csv` function from d3-fetch, with React's `useState` and `useEffect` managing the data fetching lifecycle.
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