Skip to main content
Public

Share visualization

Loading preview…

Fork of Data_Visualization_YellowFace_PY

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 Data_Visualization_YellowFace_PY

0
Nnagarjuna1968
Last edited Feb 21, 2022
Created on Feb 21, 2022

This example uses D3 v7 to draw a simple smiley face on an SVG canvas. The code creates three circles—a large green face with a blue stroke and two smaller ones for eyes—then appends a mouth using the `arc` function with an inner and outer radius and specified start and end angles. The visualization is rendered directly in the HTML with static coordinates, and the minimal JavaScript selects the SVG element to append the mouth path, demonstrating basic SVG shape creation and D3's arc generator.

AI-generated description

Half way towards a smiley face.

Comments

Sign in to join the discussion.

MIT Licensed