Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Scatter Plot With Color Legend

Public visualization

Viewing a saved revision (read-only)

0b5500d95031441c9336b97ae1d3447f

Fork of Scatter Plot With Color Legend

0 stars1🌍 Public
SSong Tao Chen
Last edited Jan 10, 2022
Created on Jan 9, 2022

This example visualizes the Iris dataset, plotting sepal length against sepal width for individual flowers. Each point is colored by species, with a color legend to the right identifying the three categories. Built with React and D3 v7, the visualization uses `d3.scaleLinear` for axes, `d3.scaleOrdinal` for color mapping, and renders as SVG. Custom React components handle axis ticks and legend marks, with tooltips providing formatted sepal length values on hover.

AI-generated description