🌍 Public
Viewing a saved revision (read-only)
ceb8c626a0644a3494325e0a32bc9e9b
Scatter_Plot_with_Color_Legend
This scatter plot visualizes the Iris Dataset, showing petal length against sepal width for three iris species, with each point colored by species and accompanied by a categorical color legend. The React-based visualization uses d3.scaleLinear for both axes, d3.scaleOrdinal for color mapping, and renders as SVG. The code imports axis components, color legend, and marks, while loading data asynchronously via d3.csv. Interactive tooltips appear on hover through SVG title elements, formatted using d3.format.
AI-generated descriptionA scatter plot of The Iris Dataset with color legend.