Skip to main content
100%

Let's make a face with D3.js

✓ Published0🌍 Public
Jjcksnm
Last edited May 15, 2020
Created on May 14, 2020
Forked from Hello VizHub

This example renders a simple, animated face from basic SVG shapes. A yellow circle forms the head, with two dark circles for eyes and rectangular eyebrows that move up and down. The mouth is drawn as an arc using the D3 `arc` function. The animation is created with D3's `.transition()` and `.duration()` methods, which are used to move the right eyebrow. The entire composition is centered and built within a single `<g>` group using D3's `select` and `append` functions.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes