Skip to main content
100%

Fork of React & D3 Starter

✓ Published0🌍 Public
Nnitika1234567
Last edited Aug 17, 2022
Created on Aug 17, 2022
Forked from React & D3 Starter

This example presents the classic Iris dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis, with each flower as a semi-transparent circle. The visualization serves as a starter template for scalable React and D3 projects. Built with React 18 and D3 v7, it decouples the React component from the D3 rendering logic, using `useEffect` and `useRef` to manage the SVG. The code employs D3's `selectAll` and `.join` for efficient element creation, `scaleLinear` for axes, and `csv` for data loading.

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