Skip to main content
Public

Share visualization

Loading preview…

A portrait

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

A portrait

0
Ggoogoogoo
Last edited Jan 4, 2023
Created on Jan 3, 2023

A yellow face with black-outlined eyes, eyebrows, and a smiling mouth is drawn using D3.js. The SVG portrait is centered, with circles for the eyes and an arc-generated path for the mouth. Animated transitions move the eyebrow rectangles upward and back downward over two seconds each, creating a subtle expressive motion. The example uses D3 v7 selections, the `arc` helper, and chained `transition().duration()` calls.

AI-generated description

Making a smiley face with d3.js

Comments

Sign in to join the discussion.

MIT Licensed