Skip to main content
Public

Share visualization

Loading preview…

Smiley Face Part II

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

Smiley Face Part II

2
KKarenNg
Last edited Aug 28, 2019
Created on Aug 28, 2019

This example shows a static yellow smiley face with two black eyes and a curved mouth, rendered as an SVG graphic. The face is built by drawing a large yellow circle with a black stroke, two smaller circles for the eyes, and an arc for the smile, all positioned within a 960×500 viewport. The code combines React for the user interface component structure and D3 v5 for SVG element creation, using basic circle and path SVG primitives. The project loads React 16.9, ReactDOM, and D3 5.11 via CDN, with the face geometry defined manually in JavaScript rather than derived from data.

AI-generated description

Smiley face implementation with React & D3.

Comments

Sign in to join the discussion.

MIT Licensed