Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Create a face with d3.js!

Public visualization

Fork of Fork of Create a face with d3.js!

0 stars0🌍 Public
SSilverOwl1112
Last edited Sep 22, 2023
Created on Sep 22, 2023

A cartoon face built with D3.js draws a yellow circular head, eyes, and eyebrows on an SVG canvas. The code uses `d3.arc` to generate the mouth path and `d3.select` to manage elements. A `transition` with `.attr` animates the eyebrow group vertically in a looping up-and-down motion. The fixed layout positions features relative to the SVG’s center, with all styling applied via inline attributes.

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.

Comments

Sign in to join the discussion.

MIT Licensed