Skip to main content
Public

Share visualization

Loading preview…

Fork of 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

Fork of Smiley Face Part I

0
Uubl2
Last edited Feb 16, 2022
Created on Feb 16, 2022
Forked from Smiley Face Part I

This example renders a partial smiley face using React and D3.js, showing a pink circle with black stroke, two eyes, and a mouth arc drawn with D3’s `arc` generator. The face is centered via SVG grouping and transformations, with the mouth path built from inner and outer radii and angular start/end points. It uses React for component structure and `d3.arc` to compute the mouth’s path data, all rendered as static SVG elements at a fixed 960×500 canvas size.

AI-generated description

Halfway towards a smiley face.

Comments

Sign in to join the discussion.

MIT Licensed