Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Let's make a face with D3.js!

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 Fork of Let's make a face with D3.js!

0
Mmathsalmath@gmail.com
Last edited Mar 23, 2026
Created on Mar 22, 2026

Halfway through building a smiley face, this example uses D3.js and React to render an SVG face with a yellow circle, black eyes, and a placeholder for a smile. The code imports `select` and `range` from D3 to select the SVG element and generate an array of fruit objects, though only the basic circle shapes are currently drawn. The SVG is rendered directly in the HTML with fixed width and height attributes, while React is loaded but only used to log its presence in the console.

AI-generated description

Half way of the smiley face

Comments

Sign in to join the discussion.

MIT Licensed