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
CCora
Last edited Feb 13, 2025
Created on Feb 13, 2025

This example displays the classic Iris Dataset, plotting sepal length against petal length for 150 flowers and using color to distinguish the three species: setosa, versicolor, and virginica. It includes labeled axes and a color legend. The visualization is built with D3.js, using `scaleLinear` for the axes, `scaleOrdinal` with `schemeCategory10` for color mapping, and the `.join()` pattern to manage SVG elements. The code also modularizes reusable components for rendering axes and the color legend.

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