Skip to main content
100%

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

✓ Published0🌍 Public
DDuong-NguyenTrinhTrung
Last edited Dec 20, 2022
Created on Dec 20, 2022

A yellow smiley face is drawn in SVG using D3.js v5, with a circular head, two eyes, and a mouth created via the `d3.arc()` path generator. The code builds the face by selecting the SVG element, appending groups and shapes, and positioning them with transform attributes. An animated sequence uses `transition.attr` to move the eyebrows up and down over two 2000-millisecond intervals, demonstrating fundamental DOM manipulation and chained transitions without any external data source.

AI-generated description

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

MIT Licensed

Similar vizzes