Skip to main content
Public

Share visualization

Loading preview…

Make a face with D3.js!

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

Make a face with D3.js!

2
Dduckmammal
Last edited Nov 23, 2020
Created on Nov 20, 2020
Forked from HTML Starter

This example demonstrates how to draw a cartoon face using D3.js with SVG shapes and animation. The face consists of a yellow circle, two black eyes, rotated rectangular eyebrows, and a curved smile path. The code uses D3’s `select`, `arc`, and `transition` APIs to position and animate the eyebrows over time. All shapes are rendered in SVG, and the face is centered using a translation transform.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed