Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of React & D3 Starter

Public visualization

Fork of Fork of React & D3 Starter

0 stars0🌍 Public
NNaveed945
Last edited Jun 22, 2022
Created on Jun 22, 2022

This example demonstrates a decoupled React and D3 integration for rendering a scatter plot of the Iris dataset. The visualization plots sepal length against petal length, using SVG circles to represent individual data points. The code showcases a scalable architecture pattern with separate modules for data loading, visualization logic, and axes rendering, highlighting how D3's `scaleLinear` and `axisLeft`/`axisBottom` APIs combine with React's `useRef` and `useEffect` hooks. The visualization selects SVG elements via D3's `select` and `join` methods to manage circle rendering.

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:

Comments

Sign in to join the discussion.

MIT Licensed