Skip to main content
100%

Let's make a face with D3.js

✓ Published1🌍 Public
BBen Daniel
Last edited Jan 7, 2019
Created on Jan 6, 2019
Forked from HTML Cars Report

A face built from basic SVG shapes—a yellow circle for the head, circles for eyes, and an arc-generated path for the mouth—is centered on a 960×500 canvas. The code uses D3.js v5’s `select` and `arc` APIs to append and position elements, with `transition()` animating the eyebrows up and down over two-second intervals. The rendering is entirely SVG, with all coordinates computed relative to the svg’s center using its width and height attributes.

AI-generated description
MIT Licensed

Similar vizzes