Polished Scatter Plot with Menus
✓ Published0🌍 Public
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 descriptionA scatter plot of The Iris Dataset.
MIT Licensed