Skip to main content
Public

Share visualization

Loading preview…

Smiley Face Part 3 - JAT

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 Part 3 - JAT

2
JJason Tiller
Last edited Feb 25, 2021
Created on Feb 25, 2021

A smiley face is drawn as a yellow circle with black stroke, two fixed-position eyes, and an arc-based mouth, centered on an SVG canvas. The visualization uses React to render the SVG elements, with D3’s `arc` API generating the mouth path based on inner and outer radii and angular extents. All coordinates are calculated relative to the canvas center, and the face is grouped using an SVG `<g>` transform. The code relies on static, hardcoded dimensions and does not include interactive or animated behavior.

AI-generated description

A finished smiley face using HTML, CSS, SVG, and JavaScript!

Comments

Sign in to join the discussion.

MIT Licensed