Skip to main content
100%

Smiley face

✓ Published0🌍 Public
Ffutureofworld
Last edited Feb 1, 2022
Created on Feb 1, 2022

This example shows a simple smiley face drawn entirely with SVG shapes: a yellow circle for the head and two black circles for the eyes, centered in a 960-by-500 viewport. The face is not yet complete, as the mouth is missing. The visualization is built with React and D3 v7, using D3’s `arc` import (though unused in the final render) and hardcoded circle coordinates. React renders the SVG elements directly, with the head’s radius and stroke width derived from the center and height constants to keep proportions consistent.

AI-generated description

Half way towards a smiley face.

MIT Licensed

Similar vizzes