Skip to main content
100%

D3 + React

✓ Published0🌍 Public
SSubhendu Karmakar
Last edited Feb 7, 2024
Created on Feb 7, 2024
Forked from React Starter

This example shows a scatterplot of the classic Iris dataset, plotting sepal length against petal length. It uses React for component structure and state management, while D3 modules handle the data-driven visualization: `d3.csv` loads the data, `d3.scaleLinear` and `d3.extent` set the scales, and `d3.axisLeft`/`d3.axisBottom` draw the axes. The SVG circles are rendered via D3 selections within a React effect, bridging the two libraries.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes