Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
AAznaggar
Last edited Jan 7, 2020
Created on Jan 7, 2020
Forked from HTML Starter

This example builds a smiling face out of basic SVG shapes using D3.js v5. The face consists of a yellow circle for the head, two circles for eyes, two rectangles for eyebrows, and an arc-generated path for the mouth, all centered within an SVG canvas. The eyebrows animate upward and then back down via chained `transition()` calls. The code imports `select` and `arc` from d3, demonstrating how to construct and position shapes with SVG attributes.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes