Skip to main content
100%

Polished Scatter Plot with Menus

✓ Published0🌍 Public
Mmuhammadshumas
Last edited Dec 29, 2021
Created on Dec 29, 2021

A scatter plot of the Iris Dataset, rendered in SVG by React, uses dropdown menus to select which of four measurements appears on the x and y axes. The menus, powered by ReactDropdown, update state via `useState` and `useCallback`, triggering re-renders that pass new scales from D3 `scaleLinear` to the reusable `AxisBottom`, `AxisLeft`, and `Marks` components. Axes are drawn from `xScale.ticks()`, while circles use `xValue` and `yValue` accessors, with `format('.2s')` for tick labels and native `<title>` tooltips.

AI-generated description

A scatter plot of The Iris Dataset.

MIT Licensed

Similar vizzes