Skip to main content
100%

Let's make a yello face with D3.js!

✓ Published1🌍 Public
Iishmam11
Last edited Aug 30, 2020
Created on Aug 30, 2020

This example uses D3.js to draw a yellow smiley face in an SVG, centered within a 960×500 viewport. The face includes eyes, animated eyebrows that move up and down through chained `transition` calls, and a mouth created with the `arc` generator. The code directly calls `select` and `arc` from D3, building shapes with `circle`, `rect`, and `path` elements. A group element translates the drawing to the viewport center, while the eyebrows repeatedly shift their vertical position over two-second durations.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes