Skip to main content
Public

Share visualization

Loading preview…

Smiley face part 1

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 1

1
Ddjfeld01
Last edited Feb 26, 2021
Created on Feb 26, 2021
Forked from Hello HTML

This example renders a smiley face using React and D3.js version 6, drawing SVG shapes onto a 960-by-500 canvas. The face consists of a yellow circle with a black stroke for the head, two dark circles for eyes, and a mouth created with D3’s `arc` helper, which defines an annular sector path with specified inner radius, outer radius, and angle range. The React component computes layout constants such as center coordinates, eye offsets, and mouth dimensions, then applies a transform to center the group. The rendering uses static SVG elements without interaction or animation.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed