Skip to main content
100%

Let's make a face using D3.js

✓ Published0🌍 Public
DDavid-Wong110723
Last edited Dec 15, 2021
Created on Dec 15, 2021
Forked from D3 Starter

This example builds a cartoon face in SVG using D3.js, combining primitive shapes with animated eyebrows. A yellow circle forms the head, with eyes and a mouth drawn via arcs and rectangles. The code demonstrates D3’s `select`, `arc`, and `transition` APIs to create the facial features and animate the eyebrows up and down in a looping motion. The face is centered using an SVG group with a translated transform, and all styling is handled through D3 attribute methods.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes