Skip to main content
100%

Fork of React & D3 Starter

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

This scatter plot visualizes the Iris flower dataset, mapping sepal length to the x-axis and petal length to the y-axis. It demonstrates a decoupled React and D3 integration pattern, where React manages the component lifecycle and D3 handles the rendering. The visualization uses d3.scaleLinear for scaling, d3.axisLeft and d3.axisBottom for axes, and SVG circles with a fill opacity of 0.5 to display data points. React hooks, such as useState and useEffect, are used for data loading and component updates, with D3's csv function parsing the data.

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