🌍 Public
Viewing a saved revision (read-only)
f37c089bcde74d0ebedf7128963e1ec5
Let's make a face with D3.js!
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 descriptionA bare minimum HTML page.
See also React Starter.