Skip to main content
100%

hi

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

This example renders a cheerful face in SVG, with a yellow circular head, two eyes, animated eyebrows, and a smiling arc-shaped mouth. The eyebrows smoothly move up and down using chained `transition` calls over two-second intervals. The code uses D3 v7’s `select` and `arc` APIs, importing them directly from the `d3` module. All shapes are positioned and scaled relative to the SVG’s width and height 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.
MIT Licensed

Similar vizzes