Skip to main content
100%

Fork of Create a face with d3.js!

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

This example displays a stylized cartoon face built from basic SVG shapes, including a yellow circle head, two circular eyes, rectangular eyebrows, and an arc-shaped mouth. The face is centered within an 960x500 SVG canvas using D3.js v7, with the eyebrows animated through a continuous 2-second transition cycle that moves them up and down. The code leverages D3’s `select`, `arc`, and chained `transition` methods, loading the library via UNPKG and constructing the scene in an SVG group element.

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