Skip to main content
100%

Fork of React & D3 Starter

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

This example demonstrates a scatter plot of the Iris dataset, mapping sepal length to the x-axis and petal length to the y-axis. The visualization uses a decoupled React and D3 integration, where a React component manages the SVG element while D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` handle scaling and axes. Data is loaded asynchronously via `d3.csv` and parsed into numeric values. The code showcases reusable patterns for scalable projects, rendering circles with a fill opacity of 0.5 across the full browser window.

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