Skip to main content
100%

Fork of React & D3 Starter

✓ Published1🌍 Public
SSampras Dsouza
Last edited Jun 22, 2022
Created on Jun 22, 2022
Forked from React & D3 Starter

This scatterplot of the Iris dataset plots sepal length against petal length, with each flower represented as a translucent circle. Built as a starter template, it demonstrates a decoupled React and D3 integration: React manages the component lifecycle and SVG container, while D3 handles scales and rendering. The code uses D3 v7’s `csv`, `scaleLinear`, `extent`, and `axisBottom`/`axisLeft` within a `VizWrapper` that passes data and dimensions to a reusable `viz` function, illustrating patterns for scaling complexity in real-world 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