Skip to main content
100%

Scatter Plot with Color Legend

✓ Published1🌍 Public
SSerind Joshua McCue
Last edited Aug 21, 2022
Created on Aug 21, 2022

This interactive scatter plot visualizes the relationships between four measurements of iris flowers, using color to distinguish species. Built with React and D3, it features dropdown menus that allow users to switch the variables plotted on the x and y axes, and a color legend that maps species to distinct hues. The plot is rendered as an SVG, with axes and ticks generated by the `AxisBottom` and `AxisLeft` components, and circles positioned using `scaleLinear` while colors come from `scaleOrdinal`. Data is loaded from a CSV file via `useData`.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes