Skip to main content
100%

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

✓ Published0🌍 Public
SSANEEM MOHAMMAD
Last edited Feb 25, 2023
Created on Feb 24, 2023

A smiling face is drawn on an SVG canvas using D3.js v5, with a fixed orange head and two circular eyes. The left eyebrow is notably absent, while the right eyebrow animates vertically through a chained `transition().duration(2000)` sequence, moving up and then back down. A mouth is rendered using the `d3.arc()` shape generator to create two curved paths. The code demonstrates fundamental DOM manipulation by selecting the SVG element and appending groups, circles, rectangles, and paths with absolute positioning.

AI-generated description

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

MIT Licensed

Similar vizzes