🌍 Public
Viewing a saved revision (read-only)
b8d0d4d5e91746f8ab02e4f76c76c3e5
d3map
This example draws a simple cartoon face using D3 v6, constructing a yellow circular head with black eyes, eyebrows, and a mouth. The code uses d3.arc to create the mouth path and shows mouseover and mouseout console events on that shape. The eyebrows animate by transitioning their group’s transform attribute between two positions over 500 milliseconds each. All shapes render as SVG elements, positioned relative to the center of the 960 by 500 pixel viewport.
AI-generated descriptionLets make a face tutorial...