Skip to main content
Public

Share visualization

Loading preview…

GiRiBnW_Ep10-resuable_animated-scatterplot

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

GiRiBnW_Ep10-resuable_animated-scatterplot

0
JJimMaltby
Last edited Jan 12, 2022
Created on Jan 12, 2022

This example shows an animated scatterplot that reproduces a Sol LeWitt art piece. It uses D3 v6 to render SVG circles whose positions are derived from data, with a transition that animates the radius of newly entering points from zero to a set size. The code builds reusable plotting components—scales, axes, and container groups—and uses the `d3.transition()` API, which is visible as `t = d3.transition().duration(1000)` and applied to enter/update/exit joins. The x and y axes are linear scales from the data’s extent, and the chart updates in place, though no external data source is specified.

AI-generated description

A reproduction of a Sol LeWitt art piece.

Comments

Sign in to join the discussion.

MIT Licensed