Skip to main content
100%

Let's Make a face with D3.js

✓ Published1🌍 Public
Rrix007
Last edited Jun 24, 2020
Created on Jun 24, 2020

A simple smiling face drawn with D3.js version 5 animates its eyebrows. The visualization uses basic SVG shapes—circles for the face and eyes, rectangles for the brows, and an arc-generated path for the mouth—all positioned relative to a central group. The eyebrows perform a two-second upward and downward transition using chained `transition().duration()` calls. The code leverages D3’s `select`, `arc`, and selection methods to construct the graphic on a red background, with the entire figure centered in a 500×500 SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes