Skip to main content
100%

Reusable ScatterPlot with Symbols & Axis Labels + Idempotent

✓ Published1🌍 Public
WWRCIECH
Last edited Jan 8, 2023
Created on Dec 31, 2022

This interactive scatter plot visualizes the Iris dataset by mapping flower measurements to x/y coordinates and using distinct symbol shapes for each variety. The chart cycles through the dataset’s measurement columns every two seconds, updating the x-axis mapping and axis titles. Built with D3’s `scaleLinear`, `scaleOrdinal`, `axisLeft`, and `axisBottom`, the reusable `scatterPlot` component supports configurable margins, symbol types, and labels. The code uses an idempotent approach with `selectAll` and `join` to update SVG marks, alongside CSS hover effects that turn points red.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes