Skip to main content
100%

Fork of React & D3 Starter

✓ Published0🌍 Public
Rrekabbnad
Last edited Jun 21, 2022
Created on Jun 21, 2022
Forked from React & D3 Starter

This React and D3 starter renders a scatter plot of the classic Iris dataset, plotting sepal length against petal length. It demonstrates a decoupled integration pattern where a React component manages the SVG container while a standalone D3 function handles all visualization logic, including scales and axes. The visualization uses d3.csv for data loading, d3.scaleLinear for coordinate mapping, and d3.axisLeft and d3.axisBottom for the axes. This architecture provides a scalable foundation for projects with increasing complexity, separating concerns between the React wrapper and the D3 rendering code.

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