Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Happy Face

Public visualization

Viewing a saved revision (read-only)

d4f85b0d89b34b96a8a5c085044d9bdd

Happy Face

0 stars0🌍 Public
Dddavud
Last edited Dec 29, 2021
Created on Dec 26, 2021
Forked from Hello HTML

A simple smiling face built with React and D3, composed of a yellow circle, two black eyes, and an arc-based mouth. The example shows how D3’s `arc` generator creates the mouth path within a React SVG component hierarchy. All shapes are rendered as SVG elements via reusable React components (`BackCircle`, `Eyes`, `Mouth`, `Face`), with the face centered using SVG transforms. The code relies on `d3.arc` for the mouth, while static props control geometry, and ReactDOM mounts the visualization to the page.

AI-generated description

A bare minimum HTML page.