Skip to main content
100%

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

✓ Published0🌍 Public
AAvi171725888
Last edited Oct 3, 2023
Created on Oct 3, 2023

This example builds a smiling face out of SVG shapes using D3.js v5, with a yellow circle for the head, two eyes, and an arc-based mouth. The code demonstrates fundamental DOM manipulation through selections and chained `transition` calls that animate the eyebrows upward and back down over two two-second intervals. Rendering is done entirely with SVG elements appended to a 960×500 canvas, using D3’s `select`, `append`, attribute setters, and the `arc` generator for the mouth path.

AI-generated description

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

MIT Licensed

Similar vizzes