Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Ppandeykriti
Last edited Apr 15, 2020
Created on Apr 15, 2020

This example shows a yellow smiley face with eyes, eyebrows, and a mouth, rendered as an SVG using D3.js. The eyebrows animate by moving up and down repeatedly through chained `transition().duration()` calls. The face is built with basic SVG shapes—circles for the eyes, rectangles for the eyebrows, and a path generated with `d3.arc` for the mouth—all positioned within a centered `<g>` group using translation transforms.

AI-generated description

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

MIT Licensed

Similar vizzes