Skip to main content
100%

Hello HTML

✓ Published2🌍 Public
HHao2020560
Last edited Aug 1, 2022
Created on Aug 1, 2022
Forked from React & D3 Starter

This example visualizes the classic Iris flower dataset as a scatter plot, mapping sepal length on the x-axis and petal length on the y-axis. It serves as a starter template demonstrating best practices for integrating React with D3, using `select` and `join` from D3 to update SVG elements declaratively. The code features a decoupled architecture with separate modules for axes, data loading, and the main visualization logic, leveraging `scaleLinear`, `extent`, and `axisBottom` APIs to render the chart.

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