Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Fork of HTML Starter

Public visualization

Viewing a saved revision (read-only)

9fe66c1bc5444859bb6bdca9704a0e0a

Fork of Fork of Fork of Fork of HTML Starter

0 stars0🌍 Public
HHui Wang
Last edited Nov 6, 2022
Created on Nov 6, 2022

This example shows a grid of 18 cartoon faces, each randomly generated with different eye positions, eye radii, and mouth shapes. It demonstrates how React components can be composed to create reusable visual elements, with each face built from separate `Face`, `BackgroundCircle`, `Eyes`, and `Mouth` components. The code uses React (v17) for component rendering and D3’s `arc` generator to draw the mouth paths, while `d3.range` creates the grid layout. All faces are rendered as SVG elements within a coordinate system centered via SVG transforms.

AI-generated description

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

See also React Starter.