Skip to main content
100%

Let's Make Fac using D3

✓ Published1🌍 Public
Mmok3bat
Last edited Apr 26, 2021
Created on Apr 26, 2021
Forked from Hello VizHub

This example draws a cartoon face using D3 version 6, with SVG shapes for the head, eyes, eyebrows, and mouth. The face is centered via a translated group, and the eyebrows animate up and down using chained `transition().duration()` calls. The code demonstrates local ES6 module imports, loading D3 from UNPKG, and uses `d3.select`, `d3.arc`, and SVG attrs like `cx` and `r` to construct the static and animated elements.

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