Skip to main content
100%

Interactive Color Legend

✓ Published0🌍 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.

MIT Licensed

Similar vizzes