Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
MMarlies van der Wees
Last edited Oct 2, 2019
Created on Oct 1, 2019

A yellow smiley face is drawn in SVG with D3.js, featuring a circular head, eyes, eyebrows, and an arc-based mouth with a tongue. The demonstration focuses on fundamental DOM manipulation by using D3 selections to append and style shapes, then applies a repeated transition to the eyebrows’ `transform` attribute, making them bounce up and down every two seconds. The code imports `select` and `arc` from D3 and sets the SVG dimensions from the markup attribute.

AI-generated description

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

MIT Licensed

Similar vizzes