Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Interactive Color Legend

Public visualization

Interactive Color Legend

0 stars0🌍 Public
Ttharuta
Last edited Aug 7, 2021
Created on Aug 7, 2021

This interactive scatterplot of the Iris dataset uses an ordinal color scale to encode species, with a color legend that filters the displayed points on hover. Built with React and D3 v5, it leverages `scaleOrdinal`, `scaleLinear`, and `extent` to map sepal and petal measurements, while the legend’s `onMouseEnter` handler triggers state updates via `useState`. Axes are rendered using custom `AxisBottom` and `AxisLeft` components, and SVG circles represent data points.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed