Skip to main content
100%

Let's make a face with D3.js

✓ Published2🌍 Public
JJaKokosz
Last edited Mar 24, 2020
Created on Mar 24, 2020

A smiling face made of SVG shapes is drawn on a yellow circle, with eyes, eyebrows, and a mouth defined by D3.js selections and the `arc` generator. The eyebrows animate vertically via chained `transition().duration(2000)` calls, shifting down and then returning. The code imports `select` and `arc` from D3 v5, positions elements using `attr` with computed coordinates, and renders in a React-based HTML page with an SVG canvas.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes