Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatter Plot with Color

Public visualization

Viewing a saved revision (read-only)

f238a86cf0724732a4d1b767809df653

Fork of Scatter Plot with Color

0 stars0🌍 Public
Jjt23346059@gmail.com
Last edited Sep 12, 2024
Created on Sep 12, 2024

A scatter plot of the Iris Dataset maps sepal length to petal length, with each of the three species (setosa, versicolor, virginica) encoded by a distinct color from the categorical `d3.scaleOrdinal` scheme. The visualization includes labeled x- and y-axes, a color legend with tick marks for species names, and circular markers rendered as SVG elements. Built with D3.js, the code uses `d3.extent`, `d3.scaleLinear`, and `d3.schemeCategory10` to scale data and colors, while custom modules `axes.js` and `colorLegend.js` construct the coordinate system and legend via selection joins.

AI-generated description

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

See also: