Skip to main content
100%

Scatterplot with Legend Interaction

✓ Published1🌍 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
MIT Licensed

Similar vizzes