Skip to main content
100%

Fork of Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
AAkhilaSiripurapu
Last edited Feb 25, 2023
Created on Feb 23, 2023

This example demonstrates how to build a cartoon face using fundamental D3.js DOM manipulation, with animated eyebrows that move up and down over time. The face is rendered in SVG and includes features like eyes, blush, a nose, mouth, ears, teeth, hair, and a beard, all constructed from basic shapes. The code uses d3.select, d3.append, and transition methods for animation, and d3.arc to generate the nose and mouth paths. Data binding via d3.selectAll and enter() is used to create the teeth, while a for loop appends hair and beard rectangles.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes