Skip to main content
100%

D3.js Starter

✓ Published2🌍 Public
JJames Song
Last edited Jul 19, 2020
Created on Jul 17, 2020
Forked from SVG TEST

This example shows a simple yellow face with eyes, eyebrows, and a mouth, all drawn with SVG shapes inside a D3.js selection. The eyebrows animate by shifting their vertical position through chained `transition` calls, moving down and back up once. The code uses `d3.select` to grab the SVG, `d3.arc` to generate the mouth path, and attributes like `attr` to position circles and rectangles. The rendering relies on SVG elements within a 960x500 viewport, with the face centered via a translated group.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes