Skip to main content
100%

Let's make a face with D3.js

✓ Published2🌍 Public
SSeanisgod1994
Last edited Sep 28, 2020
Created on Sep 28, 2020
Forked from HTML Starter

This example builds a simple cartoon face using D3.js v6 in a React framework, rendered as SVG with animated elements. It draws a yellow circle for the head, black circles for eyes, and an arc-generated mouth using the `d3.arc()` API. Two rectangular eyebrows are added, with the left one animating upward via a `transition().duration(2000)` call. The code uses `select` and `arc` from D3, positioning elements relative to the SVG’s width and height attributes. The face is composed purely of geometric primitives, with no external data source.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes