Fork of React & D3 Starter
✓ Published0🌍 Public
This fork of the React & D3 Starter visualizes the classic Iris dataset as a scatter plot. The code demonstrates a decoupled React and D3 integration pattern where a `VizWrapper` React component manages the SVG container and calls a separate `viz` function to handle D3 rendering. Using D3 v7 APIs like `scaleLinear`, `extent`, `csv`, `axisLeft`, and `axisBottom`, the example plots sepal length against petal length. The JavaScript and React libraries are loaded via UMD from unpkg, and the data is fetched from a local CSV file.
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