Skip to main content
100%

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

✓ Published0🌍 Public
TTarul170720
Last edited Dec 9, 2021
Created on Dec 9, 2021

This example demonstrates fundamental DOM manipulation with D3.js by building a yellow smiley face with eyes, eyebrows, and a mouth. The eyebrows animate by alternating their vertical position via chained `transition().duration()` calls, moving up and then back down. The code uses `d3.select` and `d3.arc` to create SVG shapes, with coordinates calculated from the viewport dimensions. All elements are appended to a centered `<g>` group, and the animation runs continuously without user interaction.

AI-generated description

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

MIT Licensed

Similar vizzes