Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot for Iris Data

Public visualization

Scatter Plot for Iris Data

0 stars0🌍 Public
Aarcothanmukha
Last edited Mar 28, 2022
Created on Mar 28, 2022

This example renders the classic Iris dataset as a scatter plot using D3 v6. It maps petal length and petal width to the x and y axes, coloring each point by species (setosa, versicolor, or virginica) with yellow, pink, or blue fills. The dataset is loaded via `d3.csv` from a GitHub raw URL, with numeric parsing of all measurements. Axes are generated with `d3.axisLeft` and `d3.axisBottom`, using `d3.scaleLinear` and `d3.extent` to set domains based on the data.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed