Skip to main content
100%

Let's make a face with D3.js

✓ Published0🌍 Public
EEzhil-Kalai
Last edited Feb 25, 2023
Created on Feb 25, 2023

This example builds a cartoon face in the browser using D3.js, with a yellow circular head, eyes, eyebrows, and a simple mouth. The code constructs the face by appending SVG shapes—circles, rectangles, and an arc path—to a central group element. An animation is applied to the eyebrows using chained `transition()` calls, causing them to rise and fall over two-second intervals. The visualization uses D3's `select` and `arc` functions, and renders entirely as SVG without any external data source.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes