Skip to main content
100%

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

✓ Published0🌍 Public
EErikaLozada
Last edited Aug 19, 2021
Created on Aug 19, 2021

A smiley face built with D3.js animates its eyebrows upward and downward in a looping transition. The code uses `d3.select`, `d3.append`, and `d3.arc` to construct SVG shapes—a yellow circle for the head, two eyes, rectangular eyebrows, and a mouth—within a centered group. The eyebrows move via chained `transition` and `.attr` calls over a two-second duration, demonstrating fundamental DOM manipulation in D3 v5.

AI-generated description

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

MIT Licensed

Similar vizzes