Skip to main content
Public

Share visualization

Loading preview…

An ahaha Face with D3!

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

An ahaha Face with D3!

0
NNemastoja
Last edited Jan 30, 2021
Created on Jan 25, 2021

A stylized face is drawn with D3 v6 and rendered as an animated SVG. An outer circle forms the head, two pairs of concentric black and white circles create the eyes, and a path uses `d3.arc` to define a mouth. The white eye pupils repeatedly change radius over two-second intervals using chained `.transition()` calls, creating a looping blink effect. The code directly manipulates SVG attributes like `cx`, `cy`, and `r`, with layout coordinates calculated from the SVG's width and height.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed