Skip to main content
Public

Share visualization

Loading preview…

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

Animated Scatter Plot with Menus

1
Nnim@brejnholt.dk
Last edited Feb 8, 2024
Created on Feb 5, 2024

This example uses the D3.js library to render an animated scatter plot of the Iris flower dataset, where each point represents a sample and its position is determined by selected flower measurements. The visualization includes two dropdown menus for choosing which measurement (petal or sepal width/length) to plot on the X and Y axes. When a menu selection changes, the scatter plot smoothly transitions circles to their new positions over one second using D3 transitions, with a unique staggered delay between points. The plot axes also update dynamically to reflect the new data ranges.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed