Fork of React & D3 Starter
✓ Published0🌍 Public
This example demonstrates a scatter plot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis. The visualization uses a decoupled React and D3 integration, where a React component manages the SVG element while D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` handle scaling and axes. Data is loaded asynchronously via `d3.csv` and parsed into numeric values. The code showcases reusable patterns for scalable projects, rendering circles with a fill opacity of 0.5 across the full browser window.
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