Skip to main content
Public

Share visualization

Loading preview…

Following Along Point Scale 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

Following Along Point Scale Animated Scatter Plot with Menus

0
PParker-D5
Last edited Oct 11, 2023
Created on Oct 11, 2023

This example shows an interactive scatter plot of the Iris dataset with two dropdown menus for selecting which quantitative or categorical column maps to the x and y axes. Animated transitions via `d3.transition` and `selection.join` move circles smoothly between positions, while axes update with a default `axisBottom` and `axisLeft` scale. The code uses d3.v6 with `scaleLinear` and `scalePoint`, rendering in SVG with an opacity of 0.2 on each circle. Data is loaded as CSV and parsed on the fly.

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