Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley Face Part 1

Public visualization

Viewing a saved revision (read-only)

1d8751c11ea44e9cb1ff6bc6ca283d43

Smiley Face Part 1

0 stars0🌍 Public
CCedric Mendoza
Last edited Oct 13, 2021
Created on Oct 2, 2021
Forked from HTML Starter

A yellow smiley face is drawn as three SVG circles: a large yellow face with a black outline, and two smaller black eyes positioned symmetrically. The face is centered in a 960 by 500 pixel viewport, with the eyes offset from the center. Built with React 17 and D3 v7, the visualization uses JSX to render SVG circle elements, computing positions with constant variables for eye offset and radius. The face radius is derived from the viewport height, ensuring the circle fits within the SVG canvas.

AI-generated description

Half way towards a smiley face