Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
DDifan Gu
Last edited Jul 8, 2020
Created on Jul 8, 2020

A yellow circle with two black eyes, animated eyebrows, and an arc-shaped mouth forms a smiling face. The example demonstrates basic D3.js v5 shape generation and SVG manipulation, using `d3.select` to append circles, rectangles, and a path built with `d3.arc`. The eyebrows move up and down via chained `transition().duration()` calls, creating a subtle animated expression. All elements are centered within an SVG of fixed dimensions using a translated group.

AI-generated description
MIT Licensed

Similar vizzes