Fork of Hello VizHub
✓ Published2🌍 Public
This example shows a smiling face drawn with SVG shapes, including a yellow circle for the head, two eyes, animated eyebrows, and a mouth. The code uses D3 v5 to build and manipulate the SVG elements, importing `select` and `arc` from the D3 library. The eyebrows animate by tweening their transform attribute over two separate 2-second transitions. The face is centered using a translated group, and the mouth is created with D3’s `arc` path generator. A local ES6 module provides a text message displayed via D3’s selection API.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed