Skip to main content
Public

Share visualization

Loading preview…

Fork of Smiley Face Part IV

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 IV

0
FFlamur
Last edited Dec 17, 2021
Created on Dec 17, 2021

This example shows a simple smiley face composed of SVG shapes: a yellow circle for the head, two red circles for the eyes, and two arcs for the nose and mouth. The face is rendered with React components, using D3’s `arc` generator to create the curved paths for the mouth and nose. The SVG is drawn from a React component that maps the face’s geometry (center, radii, and offsets) into the corresponding `<circle>` and `<path>` elements.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed