Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
RRichard-Koeln
Last edited Aug 15, 2019
Created on Aug 15, 2019

A smiling face built from SVG primitives in D3 v5, centered with a translated group and animated with chained transitions. The code draws a yellow head, black eyes, and rectangular eyebrows that move downward in two sequential 2-second transitions, while a mouth is rendered as an arc using the `d3.arc` shape generator. The example demonstrates basic D3 selection, attribute chaining, and SVG coordinate transforms without external data, relying on hardcoded dimensions and spacing values for the facial features.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes