Skip to main content
100%

Fork of React & D3 Starter

✓ Published1🌍 Public
RROU
Last edited Sep 18, 2023
Created on Sep 18, 2023
Forked from React & D3 Starter

This example renders the classic Iris flower dataset as a scatterplot, plotting sepal length against petal length across three species. It demonstrates a clean separation between React and D3, using React hooks for data loading and state management while delegating SVG rendering to D3 selection joins and scaleLinear. Axes are drawn with d3.axisLeft and d3.axisBottom. The animated enter/update/exit pattern is handled through D3’s `join` method, making the starter suitable for scaling to more complex, interactive visualizations in production projects.

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