🌍 Public
Viewing a saved revision (read-only)
f4b541e2b9844755996f5ac8ed751a39
Intro to D3.js (making a face)
This example demonstrates how to construct a simple smiling face using D3.js v6 primitives. The visualization builds the face from an SVG circle for the head, two additional circles for eyes, and an arc-generated path for the mouth, all positioned within a translated group. The mouth uses an animated transition over 2 seconds to shift its vertical position, showcasing D3’s built-in transition capabilities. The code relies on D3’s `select`, `append`, and `arc` APIs, rendering entirely through SVG elements without external data sources.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.