Skip to main content
100%

Lets make a face with d3

✓ Published1🌍 Public
SSchmittYannic
Last edited Aug 7, 2020
Created on Aug 7, 2020
Forked from HTML Starter

This example shows a simple cartoon face built with SVG shapes—a yellow circle for the head, two eyes, and an arc-based mouth—that animates its eyebrows up and down over time. The face is centered using a translated group, and each facial feature is positioned relative to that center. The code uses D3 v5 selection methods like `select` and `append`, along with `transition().duration()` to animate the eyebrow group’s `transform` attribute. The mouth is drawn using the `d3.arc()` generator with specified inner and outer radii and angular ranges.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes