Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Smiley Face 1

Public visualization

Viewing a saved revision (read-only)

d7c94b84923a4385bd331bb159f821a5

Fork of Smiley Face 1

0 stars1🌍 Public
VVishnu Jayan
Last edited Feb 18, 2022
Created on Feb 17, 2022
Forked from Smiley Face 1

This example shows a simple smiley face built with React and SVG, rendered on a 960 by 500 pixel canvas. The face uses a yellow circle with a black stroke for the head, two white eyes with black outlines, and a curved mouth generated with the d3 `arc()` function. The code structures each element as a React component, applying constant offsets and radius values defined in variables. It uses ReactDOM to render the SVG into the page, with D3 v7 providing the arc path data for the mouth.

AI-generated description

Part one of face 1n using react and svg