Skip to main content
100%

Let's Make a face with D3.js

✓ Published0🌍 Public
DDhaval Potdar
Last edited Nov 27, 2019
Created on Nov 26, 2019
Forked from Hello VizHub

The example builds a cartoon face from basic SVG shapes using D3.js v5. It draws a yellow circle for the head, black circles for the eyes, and an arc-based path for the mouth via d3.arc. The right eye uses chained transition.attr calls to animate its vertical position twice, creating a blinking effect. The code imports select and arc directly from the d3 module and renders everything with SVG elements in a fixed 960×500 viewport.

AI-generated description
MIT Licensed

Similar vizzes