Skip to main content
100%

Let's make a face with D3.js

✓ Published0🌍 Public
++/+
Last edited Dec 19, 2020
Created on Dec 19, 2020
Forked from Untitled

This example demonstrates how to build a cartoon face using D3.js v6, composed of basic SVG shapes: a yellow circle for the head, two small circles for eyes, rectangles for eyebrows, and an arc-based path for the mouth. The page centers the face within an SVG, and a transition animates the right eyebrow moving upward over two seconds. The code imports `select` and `arc` from the D3 library, uses `svg.append` to construct elements, and applies a transition with a 2000-millisecond duration. No external data is involved; it is purely a programmatic SVG rendering exercise.

AI-generated description

Shapes with SVG and CSS

MIT Licensed

Similar vizzes