Skip to main content
Public

Share visualization

Loading preview…

Fork of Let's 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

Fork of Let's make a face with D3.js

0
JJOSHUA BUSINGE
Last edited Jul 5, 2022
Created on Jul 5, 2022

This example shows a smiling cartoon face built with D3.js v5, featuring animated eyebrows that move up and down over time. The face is constructed from SVG primitives, including a yellow circle for the head, black circles for eyes, rectangles for eyebrows, and a mouth drawn using an arc path. The code uses D3’s `select` and `arc` APIs, along with chained `transition` calls to animate the eyebrow position. Rendering is set up in a React-free HTML page with an SVG canvas, though the framework metadata indicates React integration is possible.

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