Skip to main content
Public

Share visualization

Loading preview…

Smiley 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

Smiley Face Part III

18
Yyuzhang21
Last edited Sep 26, 2019
Created on Aug 25, 2019

This smiley face visualization shows a cartoon face with asymmetrical eyes, eyebrows, a nose, a mouth, and hair, all rendered as SVG elements within a React component. The face is constructed using D3’s `arc()` generator for the eyebrows and mouth, with rotation and translation transforms applied to position them. React manages the SVG markup, while D3 v5 provides the arc paths. The eyebrows are rotated by -70 and 70 degrees, and the mouth is flipped 180 degrees, demonstrating composable geometric transformations.

AI-generated description

Smiley face implementation with React & D3. Some tweaks on eyes, eyebrows, nose, mouth and hair. And eyebrows and mouth are rotated and translated.

Comments

Sign in to join the discussion.

MIT Licensed