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
SSaiipriiya
Last edited Mar 6, 2023
Created on Mar 6, 2023

This example visualizes the classic Iris dataset as a scatter plot, using sepal length on the x-axis and petal length on the y-axis. Each point’s color encodes the flower species, with a categorical color legend identifying setosa, versicolor, and virginica. The visualization is built using D3.js, leveraging `scaleLinear` for the axes, `scaleOrdinal` with `schemeCategory10` for the color mapping, and the `selection.join` API for declarative SVG creation. A custom `axes` and `colorLegend` module handle the chart’s annotations.

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