Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Interactive Color Legend

Public visualization

Viewing a saved revision (read-only)

39bb2f9c1fcc490a87708a257af22db4

Fork of Interactive Color Legend

0 stars0🌍 Public
Cchakritha06
Last edited Jul 1, 2022
Created on Jul 1, 2022

This example visualizes the classic Iris dataset, plotting petal length against sepal width for individual flowers, colored by species. Hovering over a species in the interactive color legend highlights only the corresponding points, fading the rest. Built with D3 v5 scales and React components, the scatter plot uses the `scaleLinear` and `scaleOrdinal` APIs, and renders SVG circles via custom `Marks` and `ColorLegend` components. Data is loaded as CSV using `d3.csv`.

AI-generated description

A scatter plot of The Iris Dataset.