Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Iidwann-eng
Last edited Mar 16, 2020
Created on Mar 16, 2020

This example shows a simple cartoon face built with D3.js v5 and React, rendered as SVG with animated eyebrows. It uses `d3.select` and `d3.arc` to create the face shape, eyes, and mouth, while `transition().duration()` animates the eyebrows up and down repeatedly. The face is centered using SVG group transforms, with fixed pixel offsets for eye spacing and brow placement. No external data is used; all geometry is defined directly in code.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes