Skip to main content
Public

Share visualization

Loading preview…

Fork of Let's make a face: part 3

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 Let's make a face: part 3

0
SSonuSriN
Last edited Feb 16, 2022
Created on Feb 16, 2022

This example shows a smiley face rendered as a scalable vector graphic using React and D3. The face is composed of a yellow circle for the head, two black eyes, and a curved mouth drawn as an arc path. The code uses React to create SVG elements and the `d3.arc` function to generate the mouth shape, with coordinates centered on the middle of the canvas. React 17 and D3 v7 are loaded via CDN, and the SVG is drawn with fixed dimensions of 960 by 500 pixels.

AI-generated description

Making a smiley face with React and D3

Comments

Sign in to join the discussion.

MIT Licensed