Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Let's make a face with D3.js!

0 stars1🌍 Public
DDi Zhen
Last edited Jun 20, 2019
Created on Jun 20, 2019
Forked from Hello VizHub

This visualization uses D3.js v5 to draw a simple cartoon face directly onto an SVG canvas. It constructs the face from basic geometric shapes: a large yellow circle for the head, two smaller circles for the eyes, and a mouth created with a D3 arc generator. The code reads the SVG’s width and height attributes to center the face, and it uses chained methods to set each shape’s position, fill, and stroke properties.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed