Skip to main content
Public

Share visualization

Loading preview…

Smiley Face Parts I, II, and III

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Smiley Face Parts I, II, and III

2
MMilena Belianovich Holtman
Last edited Oct 12, 2022
Created on Oct 11, 2022
Forked from HTML Starter

This example shows a yellow smiley face constructed from SVG shapes, including two eyes, a mouth arc, eyebrows, a red nose, and white teeth-like rectangles. The face is centered and built using React components with D3’s `arc()` generator to create the mouth path. Circle, line, rect, and ellipse SVG elements are positioned using constants derived from the viewport dimensions and offsets. The code uses `ReactDOM.render` with D3 v7, all rendered inside a single SVG group transposed to the canvas center.

AI-generated description

Half way toward the smiley face

Comments

Sign in to join the discussion.

MIT Licensed