Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatter Plot with Color

Public visualization

Fork of Scatter Plot with Color

0 stars0🌍 Public
Aadityaraoh
Last edited Mar 11, 2023
Created on Mar 11, 2023

This example visualizes the Iris Dataset as a scatter plot, mapping sepal length to the x-axis and petal length to the y-axis. Each of the 150 points is colored by species—setosa, versicolor, or virginica—using an ordinal color scale with `d3.scaleOrdinal` and `schemeCategory10`. A color legend displays the species labels, while axes with custom labels are rendered via reusable `axes` and `colorLegend` functions. The visualization uses `d3.csvParse` to load data and selection joins to bind circles to the dataset.

AI-generated description

A scatter plot of the Iris Dataset with a color legend.

See also:

Comments

Sign in to join the discussion.

MIT Licensed