Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Smiley Face Part II

Public visualization

Smiley Face Part II

0 stars0🌍 Public
SSong Tao Chen
Last edited Jan 5, 2022
Created on Aug 21, 2021

A modular smiley face built with React and SVG, composed of a yellow background circle, two black eyes, and an arched mouth. The face is centered within a 960x500 viewport using a FaceContainer that applies a translate transform. The mouth is drawn with a `d3.arc()` path, while eye and circle positions are controlled via props. The code defines reusable components—BackgroundCircle, Eyes, and Mouth—and renders them through the main Face component, demonstrating a component-based approach to data-visualization primitives.

AI-generated description

Half way towards a smiley face.

Comments

Sign in to join the discussion.

MIT Licensed