Skip to main content
100%

Make a face with d3.js

✓ Published2🌍 Public
MMuiruriscode
Last edited Oct 4, 2021
Created on Oct 4, 2021

This example builds a simple, animated face using D3.js on an SVG canvas. A yellow circle forms the head, with smaller circles for eyes, rectangles for eyebrows, and an arc-generated path for the mouth. The code demonstrates ES6 module imports, D3’s `select` and `arc` APIs, and a chained `transition().duration()` sequence that repeatedly raises and lowers the eyebrows.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes