Skip to main content
Public

Share visualization

Loading preview…

Smiley Task

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 Task

0
Ssuchitra2602
Last edited Jun 19, 2022
Created on Jun 18, 2022

This example renders a large, stylized smiley face using React and D3’s `arc` generator. The face is composed of SVG primitives: yellow circles for the head, black circles for eyes with white highlights, red ellipses above them, and thick lines for eyebrows and a smiling mouth. D3’s `arc` constructs the mouth and eye-shaped paths, while React manages the SVG element hierarchy. The layout is statically positioned, with shapes centered and scaled relative to a viewport of 900 by 510 pixels, using a fixed coordinate system.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed