Skip to main content
Public

Share visualization

Loading preview…

a face with D3.js!, Migusti

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 face with D3.js!, Migusti

0
RRemustus
Last edited Sep 3, 2021
Created on Sep 3, 2021

A smiling face rendered in SVG animates as its eyebrows rise and fall, demonstrating fundamental DOM manipulation with D3.js. The code uses d3.select to append circle, rect, and path elements, positioning them via SVG transform attributes. Eyebrow movement is created with chained transition() and duration(2000) calls, while the mouth uses d3.arc with defined innerRadius, outerRadius, and start/end angles. The yellow face and black features are drawn entirely through D3’s data-join-free imperative API on a fixed 960×500 canvas.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

Comments

Sign in to join the discussion.

MIT Licensed