Skip to main content
100%

Fork of Let's make a face with D3.js

✓ Published0🌍 Public
JJOSHUA BUSINGE
Last edited Jul 5, 2022
Created on Jul 5, 2022

This example shows a smiling cartoon face built with D3.js v5, featuring animated eyebrows that move up and down over time. The face is constructed from SVG primitives, including a yellow circle for the head, black circles for eyes, rectangles for eyebrows, and a mouth drawn using an arc path. The code uses D3’s `select` and `arc` APIs, along with chained `transition` calls to animate the eyebrow position. Rendering is set up in a React-free HTML page with an SVG canvas, though the framework metadata indicates React integration is possible.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes