Skip to main content
Public

Share visualization

Loading preview…

[Ex.10] Animated Reusable D3 Scatter Plot with labels

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

[Ex.10] Animated Reusable D3 Scatter Plot with labels

3
AAndrea Mignone
Last edited Jun 14, 2021
Created on May 25, 2021

This example presents an animated scatter plot of the Iris Dataset, cycling through different x-axis variables every three seconds. Built with D3 v6, it uses selection joins and transitions to smoothly update circle positions and axis scales. The reusable chart function accepts configurable accessors for data values, labels, and margins, with axis rendering via `axisLeft` and `axisBottom`.

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