Skip to main content
Public

Share visualization

Loading preview…

Fork of Smiley Face Part VI

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 Smiley Face Part VI

1
YYedrup
Last edited Jan 26, 2021
Created on Jan 26, 2021

A grid of 18 randomized smiley faces, each rendered as an independent SVG composed of layered React components for the face, eyes, mouth, and background circle. The code combines React's component model with D3’s `arc` generator to draw the mouth path, and uses a `FaceContainer` to manage the SVG viewport and centered translation. Each face’s dimensions, stroke width, eye placement, and mouth radius are generated with `d3.range` and `Math.random`, producing varied expressions across the grid.

AI-generated description

Smiley face implementation with React & D3, taking full advantage of React components and ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed