Skip to main content
100%

Fork of React & D3 Starter

✓ Published1🌍 Public
RRevanthGrreddy
Last edited Jun 25, 2022
Created on Jun 25, 2022
Forked from React & D3 Starter

This visualization displays the classic Iris flower dataset as a scatter plot, plotting sepal length against petal length. It demonstrates a decoupled integration of React and D3, where the React component manages the SVG element lifecycle while D3 handles the rendering logic. The code uses D3's `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs to compute scales and draw axes, with React hooks managing data loading via `useData`.

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