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
MMaurice Huang
Last edited Oct 29, 2021
Created on Oct 29, 2021

This interactive block renders a classic smiley face as a scalable vector graphic (SVG) built within a React component. Using D3 v5 to construct the mouth arc, the visualization defines circle elements for the head and eyes, with a yellow fill and black stroke. The react-dom library handles rendering to the page, while D3's `arc` function computes the precise path for the smile. The composition is centered on a 960 by 500 canvas, visually demonstrating how React can integrate with D3's geometry generators.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed