Skip to main content
100%

Fork of React & D3 Starter

✓ Published0🌍 Public
DDylan Doucet
Last edited Jan 2, 2023
Created on Jan 2, 2023
Forked from React & D3 Starter

This starter demonstrates a decoupled React & D3 integration pattern for scalable projects. It visualizes the Iris dataset as a scatterplot of sepal length against petal length, using React to manage component state and the SVG container, while D3 handles the scales, axes, and circle elements. The code uses `useData` with `d3.csv` to load data, `scaleLinear` and `extent` for scales, and `axisLeft`/`axisBottom` for axes. This example shows a clean separation of concerns for growing complexity.

AI-generated description

This 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

Similar vizzes