Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley Face.1

Public visualization

Viewing a saved revision (read-only)

05fd124571874bf1a5903792fc83c895

Smiley Face.1

0 stars1🌍 Public
FFrancisco Nicolas Berthet Cosentino
Last edited Jan 22, 2022
Created on Jan 21, 2022
Forked from Hello HTML

This example renders a stylized smiley face as a static SVG graphic within a React component. The face is composed of a yellow circle with a black stroke, two small circles for eyes, and an arc-shaped mouth created using the `d3.arc` API. The coordinates for the face elements are computed relative to the center of the 960×500 canvas, and the mouth path is generated with start and end angles. The code imports React, ReactDOM, and the `arc` function from d3.v7, and renders the final SVG into the page’s root element.

AI-generated description

A bare minimum HTML page.