Skip to main content
100%

Fork of Create a face with d3.js!

✓ Published0🌍 Public
RRushikeshBachhav
Last edited Oct 3, 2023
Created on Oct 3, 2023

This example draws a smiling face from basic SVG shapes—a yellow circle, two eyes, eyebrows, and a curved mouth—using D3.js selections and the `arc()` generator for the mouth path. The face is centered in a 960×500 SVG, with the eyebrows animating upward and back down via chained `transition().duration()` calls. It demonstrates importing `select` and `arc` from the D3 v7 module bundled through UNPKG, showing modular imports and SVG animation in a minimal, self-contained page.

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