Skip to main content
Public

Share visualization

Loading preview…

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

0 stars0
AAnthoVDO
Last edited Apr 18, 2021
Created on Apr 18, 2021
View stargazers

This example renders a full-screen SVG of a simple smiley face using React and D3. It shows a yellow circle with a black outline, two eye circles, and a mouth arc created with the `d3.arc()` API. The React component computes dimensions from `window.innerWidth` and `window.innerHeight`, positioning all elements relative to the center. The code demonstrates how D3 shape generators can be integrated within a React-rendered SVG.

AI-generated description

Smiley face implementation with React.

Comments

Sign in to join the discussion.

MIT Licensed