Skip to main content
Public

Share visualization

Loading preview…

Smiling Face w/ JS, React, and D3

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

Smiling Face w/ JS, React, and D3

0
SShawty199
Last edited Jan 17, 2023
Created on Jan 17, 2023

A smiling face composed of a yellow circle, two black eyes, and an arc-shaped mouth is rendered as an SVG. The example demonstrates how to build reusable chart components with React and D3, using the `arc()` generator from `d3` to construct the mouth path. Static values for dimensions and positions are defined in `index.js`, and React components such as `BackgroundCircle`, `Eyes`, and `Mouth` receive these as props to render the final graphic.

AI-generated description

Smiley face implementation with React & D3, using a React component.

Comments

Sign in to join the discussion.

MIT Licensed