Skip to main content
100%

let's make a face with D3.js

✓ Published1🌍 Public
NNohaS
Last edited Sep 1, 2023
Created on Aug 31, 2023

A smiling face is drawn on the canvas using D3 primitives, with a large yellow circle for the head, black circles for eyes, and an arc path for the mouth. Animated eyebrows move up and down on a two-second loop using the `transition().duration()` API. The underlying code manipulates SVG elements directly through `d3.select` and `svg.append`, and the mouth arc is generated by `d3.arc`, all within a React-rendered SVG.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes