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)

9205bede129d47b4b35e483856d02e5e

Let's make a face with D3.js!

0 stars1🌍 Public
Mmeihaoming
Last edited Nov 24, 2019
Created on Nov 24, 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.