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
Ddannnnnh
Last edited Sep 20, 2022
Created on Sep 20, 2022
Forked from Hello HTML

This example renders a smiley face from reusable React components inside an SVG. It uses the D3 `arc` generator in the `Mouth` component to create a semi-circular path, while `BackgroundCircle` and `Eyes` draw simple circles with fixed offsets and radii. The `index.js` file sets coordinates for the center, eye spacing, and mouth dimensions, then passes them as props within a transformed `<g>` element. The visualization demonstrates component composition and parameterized drawing with D3 v7 and React, using only static SVG markup without interactivity or data loading.

AI-generated description

HTML page.

Comments

Sign in to join the discussion.

MIT Licensed