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 stars0🌍 Public
BBryan Liu
Last edited May 21, 2020
Created on May 20, 2020

This example draws a simple yellow face in an SVG canvas using D3.js v5. It centers a circle for the head, then positions two smaller circles for eyes and an arc-generated path for a mouth. The code uses D3's `select` to target the SVG element, `attr` for setting dimensions, and the `arc` API from D3's shape utilities to define the mouth path.

AI-generated description

Let's make a face with D3.

Comments

Sign in to join the discussion.

MIT Licensed