Making a Scatter Plot with React & D3
✓ Published2🌍 Public
Llaurajchang
Last edited Mar 15, 2021
Created on Mar 15, 2021
Forked from Making a Bar Chart with React & D3 (Refactored)
This scatter plot visualizes the Iris dataset, mapping sepal length and width for individual flowers. It demonstrates a modular approach to combining React and D3, where D3's `scaleLinear` and `extent` APIs handle the data scaling and domain calculation, while React components render the SVG elements. The axes are custom-built using D3's tick generation, and the plot includes interactive tooltips via SVG `<title>` elements and labels for both axes.
AI-generated descriptionA program that loads in the Iris dataset using D3 and uses React to render the data as a scatter plot. Implements the D3 margin convention & implements axes using D3 and React.
MIT Licensed