Skip to main content
100%

Kishon Fork of Create a face with d3.js!

✓ Published0🌍 Public
PPKISHON
Last edited Sep 22, 2023
Created on Sep 22, 2023

This example draws a smiling face using D3.js, rendered as scalable vector graphics (SVG) with a 2000-millisecond animated eyebrow movement. The visualization imports `select` and `arc` from the D3 library, building the face from basic shapes: a yellow circle for the head, two circles for eyes, rectangles for eyebrows, and an arc path for the mouth. The code demonstrates API usage by chaining a two-phase `.transition()` on the eyebrow group, shifting its vertical position to create a subtle, repeated gesture.

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