Skip to main content
Public

Share visualization

Loading preview…

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

Let's make a face: part 3

13
Rrvdv
Last edited Dec 21, 2021
Created on Dec 20, 2021

A smiley face is drawn with SVG elements in React, using D3's `arc()` generator for the mouth. The face is centered with a `g` transform, featuring a gold circle, two black eyes, and a dark mouth arc. The React component renders the SVG directly, with D3 v7 handling the arc path calculation.

AI-generated description

Making a smiley face with React and D3

Comments

Sign in to join the discussion.

MIT Licensed