Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of 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 Face with d3.js!

0
Mmukundakrishna.r@gmail.com
Last edited Feb 28, 2024
Created on Feb 28, 2024

This example builds a stylized cartoon face in SVG using D3 v7, rendering a yellow circular head, elliptical eyes, curved eyebrows, and a smiling mouth. The face is centered by translating a group element to the middle of the viewport, with shapes positioned using absolute pixel offsets. The code imports `select` from D3 and uses the `arc()` generator to create the eyebrow and mouth paths, while eye spacing and radii are defined as constants. All visual elements are drawn directly into an SVG canvas without external data.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed