Skip to main content
100%

Fork of Create a face with d3.js!

✓ Published0🌍 Public
JJason
Last edited Sep 21, 2023
Created on Sep 21, 2023

A yellow face drawn with D3.js SVG shapes animates its eyebrows in a looping motion. The example demonstrates modular JavaScript with `import` statements from `d3` and local modules, loading D3 v7 via UNPKG. It uses `select` and `attr` to construct circles and rectangles for the eyes and brows, and the `arc` generator to create the mouth path. A `transition` chain with a 2000-millisecond duration moves the eyebrows up and down continuously.

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