Skip to main content
100%

Improved Scatterplot with Menus

✓ Published1🌍 Public
KKai Stewart
Last edited Nov 15, 2021
Created on Nov 15, 2021

This interactive scatterplot displays the Iris flower dataset, loaded via D3’s `csv` from a GitHub Gist, with React dropdown menus that let the user change which numeric attributes are mapped to the X and Y axes. The SVG visualization uses D3 scales (`scaleLinear`, `scaleOrdinal`) for positioning and species-based coloring, while custom React components `AxisBottom`, `AxisLeft`, and `Marks` render tick marks, labels, and circles. The axis labels update dynamically based on the selected menu values, and hovering over a circle reveals a tooltip via an SVG `<title>` element.

AI-generated description

A scatterplot of the Iris Data Set loaded as a .csv from GitHub Gist

MIT Licensed

Similar vizzes