Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Hello HTML

Public visualization

Viewing a saved revision (read-only)

45d0b312db1a4a3e8ca6e86e2d005e33

Hello HTML

0 stars0🌍 Public
Cchun0330
Last edited Oct 17, 2021
Created on Oct 16, 2021
Forked from Hello HTML

This example renders a simple smiley face in SVG using React and D3. The face is composed of a yellow background circle, two black eye circles, and a mouth path generated with the `arc()` function from D3. The code uses React to create the SVG elements and computes coordinates with static variables, such as `eyeOffsetX` and `eyeOffsetY`. The mouth arc is drawn with an inner and outer radius, starting and ending angles defining a half-circle shape. The visualization shows basic composition and DOM manipulation with React 17 and D3 v7.

AI-generated description

A bare minimum HTML page.