Skip to main content
100%

Fork of Create a face with d3.js!

✓ Published0🌍 Public
LLohieth R
Last edited Sep 23, 2023
Created on Sep 23, 2023

This example draws a smiling yellow face with d3, featuring eyes, animated eyebrows, and an arc-based mouth. The SVG is centered within a 960x500 viewport, with all facial features positioned relative to the center using SVG transforms. The code uses d3’s `select` and `arc` functions, and demonstrates transitions by moving the eyebrows up and down over two-second intervals. No external data is loaded; the rendering is purely geometric, built from circles, rectangles, and a path.

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