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 stars2🌍 Public
Bben-chin-43
Last edited May 26, 2020
Created on May 26, 2020

This example uses D3.js v5 to construct a simple cartoon face from basic SVG shapes. It begins by creating a yellow circle for the head, then adds two black circles for eyes and an arc-generated path for the mouth. The `d3.arc` function computes the mouth’s curved shape based on specified inner and outer radii, with angles defined in radians. All elements are centered within the SVG using a translation transform, demonstrating how to combine geometric primitives and D3’s arc generator for expressive, code-driven visuals.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed