Skip to main content
100%

Dataviz 9 - Scatter plot with Menus (Colour Legend)

✓ Published1🌍 Public
RRyAlpha
Last edited Nov 26, 2021
Created on Nov 26, 2021

This scatter plot displays the Iris dataset, showing relationships between sepal and petal measurements for three iris species. Users can select different attributes for the X and Y axes via dropdown menus, with species colors differentiated through an ordinal color legend using d3.scaleOrdinal. The visualization uses React with SVG rendering, importing axis components (AxisBottom, AxisLeft), a ColorLegend, and Marks that render circles with tooltips. Data loading relies on d3.csv from a CDN-hosted gist, with linear scales mapping the numeric measurements.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes