Skip to main content
Public

Share visualization

Loading preview…

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

Let's make a face with D3.js!

1
Jjesramyep1263
Last edited Mar 20, 2020
Created on Mar 18, 2020
Forked from Cars Report

The example demonstrates how to construct a cartoon face entirely with D3.js, using JavaScript objects and arrays to define facial features that render as Scalable Vector Graphics (SVG) shapes. The code relies on D3 v5’s core utilities for coordinate mapping, likely including `d3.range` and `d3.scaleLinear`, while the embedded YouTube tutorial walks through the modular construction process. Rendering occurs on a fixed 960x500 SVG canvas, with the script logging the loaded D3 library to the console for verification. The result is a playful exercise in programmatic drawing and procedural animation setup, highlighting D3’s flexibility beyond data charts.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays, and modules.

Comments

Sign in to join the discussion.

MIT Licensed