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
AAndreas Arentoft
Last edited Jan 18, 2022
Created on Jan 15, 2022
Forked from HTML Starter

This visualization renders three smiley faces at different scales, each composed of geometric SVG circles and an arc-based mouth. The faces demonstrate how component props like eye offset, pupil size, and mouth dimensions scale proportionally. Built with React and D3 v7, the code uses the `d3.arc()` API from the Mouth component to generate the smile path. FaceContainer wraps the SVG elements, transforming a central group to position each face within its allocated viewport. The array `[10, 5, 2.5]` in index.js drives the proportional sizing across the three rendered instances.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed