Skip to main content
100%

A Face With D3.js

✓ Published1🌍 Public
RRafael O'Duarte
Last edited May 6, 2020
Created on May 5, 2020
Forked from HTML Starter

A cheerful cartoon face is drawn using D3.js v5 in an SVG, with animated eyebrows that bounce up and down in a looping transition. The face consists of a yellow circle, two eyes, rectangular eyebrows, and a smile path generated with the `d3.arc` function. The code uses `d3.select` to manipulate SVG elements and `transition()` to animate the eyebrow group's vertical position over two seconds. Rendering is done entirely with SVG shapes, and the example is structured as a React project with a static HTML page loading D3 from a CDN.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes