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)

7204d9cbd3ed42e79f666e02eb60e368

Fork of Interactive Color Legend

0 stars0🌍 Public
Cchristopher-coyne
Last edited Apr 21, 2022
Created on Apr 21, 2022

A scatter plot of the Iris dataset displays petal length against sepal width, with points colored by species. The visualization uses React state to track a hovered species in the color legend, dimming all other marks via opacity changes. The `ColorLegend` component captures mouse events, while `Marks` renders SVG circles. Axes use `scaleLinear` and SVG `<line>` and `<text>` elements from d3.v5, with data loaded by the `useData` hook using `d3.csv`.

AI-generated description

A scatter plot of The Iris Dataset.