Skip to main content
100%

IC-7

✓ Published0🌍 Public
SSaivignesh-9176
Last edited Mar 13, 2023
Created on Mar 13, 2023
Forked from React & D3 Starter

This example visualizes the classic Iris flower dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis. It uses D3 scales and axes to render the chart, with semi-transparent circles representing individual data points. The code demonstrates a decoupled React and D3 architecture, where D3 handles the SVG rendering and React manages the component lifecycle. It uses `d3.csv` for data loading, `scaleLinear` and `extent` for scaling, and `axisLeft` and `axisBottom` for 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