Skip to main content
100%

Making a Scatter Plot with React & D3

✓ Published2🌍 Public
Llaurajchang
Last edited Mar 15, 2021
Created on Mar 15, 2021

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 description

A 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

Similar vizzes