Skip to main content
Public

Share visualization

Loading preview…

Let's Make a Face Part III

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 Part III

0
SSandra
Last edited Jun 1, 2021
Created on Jun 1, 2021

This example displays a yellow smiley face constructed with SVG shapes, including eyes, a mouth arc, and an angled eyebrow line. The rendering uses React to manage the SVG elements, with D3 v6 calculations via `arc()` for the mouth path and `line()` for the eyebrow. The face is centered on a 960×500 canvas, with positions derived from fixed offsets and radius values. The code demonstrates a static, programmatic composition of a facial illustration, combining D3 geometry helpers within a React component tree.

AI-generated description

Half way towards a smiley face.

Comments

Sign in to join the discussion.

MIT Licensed