Skip to main content
100%

Fork of React & D3 Starter

✓ Published0🌍 Public
YYang Shun Yu
Last edited Sep 17, 2023
Created on Sep 15, 2023
Forked from React & D3 Starter

This example visualizes the classic Iris dataset as a scatter plot, where users select which of the four flower measurements to display on the X and Y axes through dropdown menus, and points are colored by species. The visualization uses React for state management and component structure, while D3 v7 handles data loading, scales, axes, and SVG circle rendering. A custom `viz` function builds the chart, and D3's `scaleLinear` and `extent` are used for positioning, with `axisBottom` and `axisLeft` generating the axes.

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