Skip to main content
100%

Fork of Create a face with d3.js!

✓ Published0🌍 Public
KKathir Karthik M
Last edited Sep 22, 2023
Created on Sep 22, 2023

This example renders a stylized cartoon face in an SVG canvas using D3 v7. The code draws a yellow head, two eyes, rectangular eyebrows, and a curved mouth path. The eyebrows animate position using chained `transition().duration()` calls, shifting down then returning to their original offset. The visualization loads D3 via UNPKG and demonstrates SVG shape creation, group transforms, and the `arc` function for path geometry.

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