Skip to main content
100%

My First Viz - Smiley

✓ Published0🌍 Public
PPaulo Wells
Last edited Nov 30, 2021
Created on Nov 27, 2021
Forked from HTML Starter

A stylized smiley face rendered as an SVG using React components, with a yellow circular background, black eyes, and a curved mouth. The face is centered via SVG groups and layering modular React components like `BackgroundCircle`, `Eyes`, and `Mouth`. The mouth shape is generated using the d3 `arc` function with configurable radius, width, and amplitude parameters. The example demonstrates a declarative, component-based approach to data visualization, where geometric props (e.g., `eyeOffset`, `mouthRadius`) control the appearance. Rendering uses React DOM with version 16.7 and d3 v7, all within a simple HTML page.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes