Skip to main content
100%

Fork of Create a face with d3.js!

✓ Published0🌍 Public
LLohieth R
Last edited Sep 22, 2023
Created on Sep 22, 2023

A yellow smiley face is drawn in SVG with circular eyes, rectangular eyebrows, and an arc-shaped mouth. The eyebrows animate up and down via chained `transition` calls on a `g` element. Built with D3 v7, the visualization uses `select`, `attr`, and `arc` from the D3 library, with coordinates computed relative to the SVG’s center. The face is rendered on a 960×500 canvas using hard-coded dimensions and no external data source.

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