Skip to main content
100%

Making a face with D3.js

✓ Published0🌍 Public
IIsabella Jaya Rani C
Last edited Feb 23, 2023
Created on Feb 22, 2023
Forked from Hello VizHub

This example builds a cartoon face from layered SVG shapes using D3.js v5, including eyes, eyebrows, a mouth, nose, blush, ears, earrings, a tongue, hair, and a mole. All elements are drawn with basic shapes like circles, rectangles, and an arc-generated path. The eyebrows animate up and down using chained `transition().duration()` calls, creating a simple facial expression. The code imports `select` and `arc` from the D3 library and constructs the face on a 960×500 SVG canvas with a light steel blue background.

AI-generated description

This is done for the purpose of an assignment.

MIT Licensed

Similar vizzes