Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley face

Public visualization

Viewing a saved revision (read-only)

25ca30e02fa04e85adb4362a2d3d33c7

Smiley face

0 stars1🌍 Public
KKibegwa
Last edited Mar 21, 2021
Created on Mar 21, 2021
Forked from Hello HTML

This example uses React and D3 v6 to render a smiley face as an SVG. The face is composed of a yellow circle for the head, two smaller circles for eyes, and a mouth drawn with a D3 arc path generator. The code positions the head and features relative to calculated center coordinates, with the arc’s inner and outer radii defining the mouth’s thickness and its angles creating the smile. All shapes are centered within a 960×500 viewport using a translated group element.

AI-generated description

Half way towards smiley face