Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Xxychen0612.cs09@nycu.edu.tw
Last edited Sep 19, 2023
Created on Sep 19, 2023
Forked from Untitled

This example displays a yellow, cartoon-like face drawn with SVG primitives, including eyes, eyebrows, and a mouth. The face’s eyebrows perform a continuous up-and-down animation using D3’s `transition` API, creating a simple, expressive motion. The code uses D3 v7’s `select`, `append`, and `arc` functions to construct the shapes, with a 960×500 SVG canvas. The mouth is generated via the `arc()` path geometry, while the eyebrows shift vertically over two-second intervals, showcasing basic SVG rendering and animation in D3.

AI-generated description
MIT Licensed

Similar vizzes