Skip to main content
100%

Reusable Scatter Plot_iris data

✓ Published0🌍 Public
NNita
Last edited Jun 3, 2021
Created on Jun 1, 2021

This example visualizes the Iris dataset as a scatter plot, showing sepal length against sepal width for individual flowers. It uses a reusable scatter plot component built with D3 v6 and React, where scales map data values to SVG circle positions. The code loads CSV data from a GitHub gist via `d3.csv` and applies `d3.scaleLinear` with `d3.extent` for domains. Circles are appended to an SVG container with margins and a transform for positioning.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes