Skip to main content
Public

Share visualization

Loading preview…

Smiley face pt. 2

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 pt. 2

3
Ssucotton9
Last edited Jul 11, 2021
Created on Jul 5, 2021
Forked from HTML Starter

This example renders a yellow smiley face as an SVG using React components and D3’s `arc` generator for the mouth. The face is centered via a `transform` translation, with eyes positioned using fixed offsets and drawn as simple circles. Additional red paths and thick polylines appear outside the face, adding decorative elements. The code uses ReactDOM to mount the app and D3 v7 for the mouth’s arc path, with all shapes hardcoded rather than data-driven.

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