Skip to main content
Public

Share visualization

Loading preview…

Steve's Smiley Face Part I

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

Steve's Smiley Face Part I

0
Bbootshine2
Last edited May 8, 2020
Created on Aug 29, 2019
Forked from HTML Starter

This example shows a yellow smiley face with two eyes and an arc-shaped mouth, rendered as SVG inside a React app. A dropdown lets the viewer toggle the look direction between left and right, which changes a wink eye’s position offset. The face is built with basic D3 shapes—`circle` elements for the head and eyes, and `d3.arc` for the mouth path—positioned using a centered translation. React manages the UI state, while the d3.v5 library handles the geometric calculations in an SVG coordinate system.

AI-generated description

A bare minimum HTML page and smiley face built on VizHub using basic d3.js functions.

Comments

Sign in to join the discussion.

MIT Licensed