Skip to main content
Public

Share visualization

Loading preview…

Let's make a face with D3

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

Let's make a face with D3

1
Mmayankmunjal41
Last edited Jan 8, 2022
Created on Jan 8, 2022

A smiling face composed of simple geometric shapes is rendered in an SVG canvas. A large yellow circle forms the head, with two smaller black circles for eyes and a dark arc for the mouth, all centered within a 960 by 500 pixel space. The example uses D3 version 7 to select the SVG element and append the shapes, with the mouth drawn via the `d3.arc` API, which constructs a path based on specified inner and outer radii and angular ranges.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed