Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
BBat-Erdene
Last edited Jun 27, 2020
Created on Jun 26, 2020
Forked from Hello VizHub

This example uses D3.js v5 to construct a cartoon face from basic SVG shapes, centered within a 960x500 canvas. A yellow circle forms the head, with eyes, eyebrows, and a mouth built from circles, rectangles, and a path generated via `d3.arc`. The animation shows the eyebrows moving down and up using chained `transition` calls with a 600ms duration, creating a subtle expressive blink. The code leverages `d3.select`, `append`, and attribute methods to assemble the scene, targeting React as the framework while rendering directly to SVG.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes