Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 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.

MIT Licensed

Similar vizzes