Skip to main content
100%

ICE-4

✓ Published1🌍 Public
PPrasanth Damarla
Last edited Feb 20, 2022
Created on Feb 20, 2022

A yellow smiley face with animated eyebrows demonstrates basic D3.js DOM manipulation. The face is drawn as an SVG circle with two eye circles, a mouth created using the `d3.arc` path generator, and rectangular eyebrows. The eyebrows animate by chaining two `transition` calls with `duration(2000)`, moving them upward and then back to their original position. The code uses `d3.select` and `d3.arc` from D3 v5, with all elements appended to a centered `<g>` group within an SVG canvas.

AI-generated description

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

MIT Licensed

Similar vizzes