Skip to main content
Public

Share visualization

Loading preview…

Introduction to VizHub and Making 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

Introduction to VizHub and Making a Face with D3.js

0
Aamiralitah
Last edited Jun 18, 2022
Created on Jun 18, 2022
Forked from HTML Starter

This example shows a cartoon face built with D3.js v7 and React, rendered as SVG in a 900×500 viewport. It uses D3’s `arc()` generator to create the mouth and a mustache shape, while circles form the head, eyes, and colored cheeks with explicit coordinates and radii. The code loads React 17 and D3 from CDNs, defines the face as a React component, and mounts it via `ReactDOM.render`. The styling includes a light green stroke for the head and varied fill colors for facial features.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed