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

0
Cchar0496
Last edited Apr 13, 2022
Created on Apr 13, 2022

The visualization displays a grid of randomly generated smiley faces, each with slightly varied stroke widths, eye positions, eye radii, and mouth dimensions. Built with React components and D3.js v5, the code uses `d3.arc` to construct the mouth path, while `d3.range` generates the array of face instances. Each face is rendered as an SVG group, with properties like `eyeOffsetX`, `eyeRadius`, and `mouthWidth` randomized via `Math.random()` to create visual diversity across the eighteen faces.

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