Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Smiley Face Part II

Public visualization

Fork of Smiley Face Part II

0 stars0🌍 Public
UUtsav Khatu
Last edited Mar 10, 2021
Created on Mar 10, 2021

This example displays a yellow smiley face with eyes, a smile, and subtle eyebrows, resized to fill the browser window. It uses React components to structure the SVG elements, while D3’s `arc()` generator creates the curved paths for the mouth and eyebrows. The face, eyes, and strokes are drawn declaratively with SVG circles, with positions and radii computed from the viewport dimensions. Code leverages ReactDOM to mount the composition and D3 v6 for path generation.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed