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 stars1🌍 Public
AAlessan123
Last edited Jul 13, 2020
Created on Jul 11, 2020

This example builds a simple cartoon face with D3.js, rendering a yellow circle for the head, two black circles for eyes, and a curved path for a smile. Using SVG, it positions the face at the center of a 960x500 viewport. The code applies D3 selections to append elements, and the smile is generated with the `d3.arc()` function by specifying inner and outer radii and start and end angles relative to the center.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed