Skip to main content
Public

Share visualization

Loading preview…

Fork of Smiley Face Part 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

Fork of Smiley Face Part III

1
Sstephanie0215
Last edited Sep 30, 2022
Created on Sep 30, 2022

This example shows a yellow smiley face rendered as an SVG, with two black eyes and a curved mouth, centered on a 960 by 500 canvas. Built with React and D3 v5, the face uses `d3.arc()` to generate the mouth path, while circles for the face and eyes are defined with JSX inside the SVG. The code sets explicit positions and radii for each visual element, with the face drawn using simple SVG primitives and a transform to center the group.

AI-generated description

Smiley face implementation with React & D3.

Comments

Sign in to join the discussion.

MIT Licensed