Skip to main content
100%

Fork of Create a face with d3.js!

✓ Published0🌍 Public
FFaizan Surani
Last edited Oct 9, 2023
Created on Oct 3, 2023

This example displays a stylized cartoon face built entirely with SVG elements, including a yellow circular head, eyes, eyebrows, and a curved mouth. The face is centered using an SVG transform, and its features are positioned precisely with numeric constants. The code demonstrates D3.js v7’s selection and arc APIs, along with chained `transition().duration()` calls that animate the eyebrows moving upward and back downward. A local ES6 module imports `select` and `arc` from D3, while the SVG is rendered in a 960 by 500 viewport.

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