Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley Face Part I

Public visualization

Viewing a saved revision (read-only)

44d391cd42a748c49854b03ebf8bddec

Smiley Face Part I

0 stars0🌍 Public
SSamuel de Zoete
Last edited Apr 16, 2022
Created on Apr 9, 2022
Forked from HTML Starter

This example renders a yellow smiley face in SVG using React and D3 v7. It shows a circular face with two eyes and a semicircular mouth, all positioned relative to a central coordinate system via a group transformation. The code uses `d3.arc` to generate the mouth path, with explicit `innerRadius` and `outerRadius` values, while the face and eyes are simple SVG `circle` elements. Stroke width and radius calculations adjust the face size based on the fixed 960×500 viewport.

AI-generated description

Halfway towards a smiley face