Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Viewing a saved revision (read-only)

b0e45b71cca14007aca5587b3f5c00b9

Let's make a face with D3.js!

0 stars3🌍 Public
Mmeihaoming
Last edited Nov 24, 2019
Created on Oct 19, 2019

This example uses D3.js to construct a simple animated smiley face. The face is built from SVG shapes, including circles for the eyes and a path for the mouth, all grouped and positioned within an SVG canvas. The animation shows the eyebrows moving up and down over time. The code uses D3's `select`, `append`, `attr`, and `transition` APIs to create and animate the elements.

AI-generated description

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