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 stars5🌍 Public
Ddaigokawabe
Last edited Jul 15, 2020
Created on Jul 15, 2020
Forked from HTML Starter

This example shows a simple yellow face constructed from basic SVG shapes, with two eyes, eyebrows, and a mouth, all centered in a 960 by 500 canvas. D3.js v5 handles the SVG generation and layout, using `select` to target the existing `<svg>` element and `arc` to create the mouth’s curved path. The face’s features are positioned with explicit pixel offsets, and a group element translates the entire composition to the center, demonstrating a straightforward, programmatic approach to drawing with D3.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed