Skip to main content
100%

Fork of Create a face with d3.js!

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

This example draws a cheerful yellow face using SVG shapes, including circles for the eyes and an arc for the mouth. The eyebrows are rectangles that animate up and down via chained `transition()` calls with a 2000-millisecond duration. The code uses D3 v7, loaded from UNPKG, and imports `select` and `arc` from the `d3` module. All elements are centered within a 960x500 SVG using a group transformation.

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