Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Interactive Color Legend

Public visualization

Viewing a saved revision (read-only)

3afa8bbc3b274aca8d442354e9ebf8d0

Interactive Color Legend

0 stars0🌍 Public
KKeerthiKandadai
Last edited May 24, 2020
Created on May 10, 2020

This interactive scatter plot displays the Iris dataset, plotting total students against department on linear scales. Users can hover over the color legend to highlight points of a selected gender category while fading others, using React’s `useState` to manage hover state. The visualization uses `d3.scaleOrdinal` for categorical colors, `d3.scaleLinear` for axes, and renders SVG circles via React components. Data loads asynchronously from a CSV using `d3.csv`.

AI-generated description

A scatter plot of The Iris Dataset.