Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's Make a Face with D3.js

Public visualization

Viewing a saved revision (read-only)

d726d3a5935d4b508c1a9f2e9c997c8d

Let's Make a Face with D3.js

0 stars1🌍 Public
Ddanrhymes
Last edited Jan 23, 2020
Created on Jan 23, 2020

This example illustrates how to construct a cartoon face using basic D3.js shape primitives. It renders a yellow circular head with black stroke, two eyes, and a smiling mouth as a path generated by the `d3.arc()` generator. The code selects an SVG element and uses `d3.select` to append groups and circles, positioning them via `translate` transforms. The mouth arc uses fixed inner and outer radii with defined start and end angles, demonstrating a composable approach to SVG drawing with D3 v5.

AI-generated description