Skip to main content
Public

Share visualization

Loading preview…

Fork of Smiley face

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

1
Aavinash021997
Last edited Feb 18, 2022
Created on Feb 18, 2022
Forked from Smiley face part 1

This example renders a smiley face using React and D3.js, drawing the face as an SVG composed of three circles and an arc. A yellow head with a black outline is built with `<circle>` elements, while the eyes are positioned using offset coordinates, and the mouth is created with D3’s `arc()` generator to produce a curved path with specific inner and outer radii. The visualization is fixed at 960 by 500 pixels, centered around the middle of the canvas, and relies on React’s `ReactDOM.render()` to place the component into the DOM. The code explicitly sets stroke widths, radii, and angular spans to construct the facial features without any external data source.

AI-generated description

Half way towards a smiley face. Smiley mark down (MD).

Comments

Sign in to join the discussion.

MIT Licensed