Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Interactive Color Legend

Public visualization

Interactive Color Legend

0 stars0🌍 Public
AAmir
Last edited Mar 2, 2021
Created on Mar 2, 2021

This interactive color legend displays the Iris dataset's sepal length and width, using color to encode species. Hovering over a legend item fades all other data points while highlighting the selected species, making it easy to compare groups. Built with React and D3 v6, the visualization renders circles as an SVG and uses `scaleOrdinal` for color mapping and `scaleLinear` for axes. The legend's `onMouseEnter` and `onMouseOut` events drive the interactive filtering, while the chart's circles respond to the hover state.

AI-generated description

United Nation Population Bar Chart

Comments

Sign in to join the discussion.

MIT Licensed