Skip to main content
Public

Share visualization

Loading preview…

Fork of Animated Scatter Plot with Menus

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Animated Scatter Plot with Menus

0
Ppreethamkesa
Last edited Mar 7, 2022
Created on Mar 7, 2022

This interactive scatter plot visualizes the Iris dataset, letting viewers choose which flower measurements to display on the X and Y axes via dropdown menus. The chart renders as SVG circles with smooth 1000-millisecond transitions, using D3 v6’s `selection.join` to handle enter, update, and exit states. Axes update automatically with `axisLeft` and `axisBottom`, while menus built with a reusable `menu` factory dispatch change events to re-assign the xValue and yValue accessors. Data loads from a GitHub-hosted CSV file, parsed with numeric coercion for the four measurement columns.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed