Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatterplot with Legend Interaction

Public visualization

Scatterplot with Legend Interaction

1 star1🌍 Public
SSubhendu Karmakar
Last edited Feb 13, 2024
Created on Jan 29, 2024

This scatterplot maps the Iris dataset by sepal length on the x-axis and petal length on the y-axis. Users can click a species in the legend to highlight only those data points while dimming the others; clicking again clears the filter. The visualization uses D3.js v7 within a React-like state management pattern, employing `csvParse` for data loading and `scaleLinear` for axes. The legend is built with categorical color scaling via `scaleOrdinal` and `schemeCategory10`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed