Skip to main content
100%

make a face with D3.js

✓ Published0🌍 Public
Ffrancisragasa
Last edited May 30, 2022
Created on May 30, 2022

A blue circle forms the head of a face rendered in SVG, with two dark eyes, rectangular eyebrows, and an arc-based mouth created using D3's `arc` generator. The eyebrows animate vertically via chained `transition().duration()` calls on a grouped `<g>` element. The visualization uses D3 v5 within a React framework, selecting the SVG and appending shapes with `select` and `append`, all centered by translating the group to the viewport midpoint.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes