Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Hello HTML

Public visualization

Viewing a saved revision (read-only)

8fc0ec9055044610b5c017af16ce24f3

Hello HTML

0 stars0🌍 Public
DDiego del Alamo
Last edited Jan 7, 2023
Created on Jan 7, 2023

This example shows a yellow smiley face rendered as an SVG using React and D3. It draws a yellow circle for the face, two black circles for the eyes, and a D3 `arc` path for the mouth. The component uses `ReactDOM.render` to inject the SVG into the HTML root. The `arc` API defines the mouth’s inner and outer radii and angular range, producing a half-circle that opens downward. Rendering is vector-based with fixed pixel dimensions for the 960-by-500 viewport.

AI-generated description

Half way towards a smiley face.