Skip to main content
Public

Share visualization

Loading preview…

Reusable (ProD3.js) 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

Reusable (ProD3.js) Animated Scatter Plot with Menus

1
JJimMaltby
Last edited Apr 18, 2022
Created on Apr 18, 2022

This animated scatter plot visualizes the Iris dataset, displaying measurements of petal and sepal dimensions. The visualization is a reusable D3 component that allows users to dynamically switch which features appear on the x and y axes through dropdown menus. Using D3's transition system, data points smoothly animate between positions when axis selections change, with circles initially appearing with a growth effect. The chart renders as SVG and uses d3.scaleLinear, d3.extent, and d3.axis functions to construct scales and axes dynamically.

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