Skip to main content
Public

Share visualization

Loading preview…

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

Let's make a Face with D3.js

2
IImmaculata-Mary Muoghalu
Last edited Apr 17, 2021
Created on Apr 16, 2021
Forked from Shapes with SVG

A static SVG face built with D3.js includes circles for eyes, a path for a mouth, and rectangular eyebrows, all positioned using the `arc` generator and SVG attributes. Clicking an "Eye me!" button triggers a `transition` on the eyebrows group, moving them upward and back down over two 2-second intervals. The example uses D3 v5 modules like `select`, `arc`, and `transition.attr` to animate the facial expression, demonstrating object and array handling in JavaScript.

AI-generated description

An example tutorial of how to use Javascript objects, arrays, and modules.

Comments

Sign in to join the discussion.

MIT Licensed