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
KKevinw97
Last edited Jan 17, 2020
Created on Jan 17, 2020

A D3.js example demonstrates fundamental DOM manipulation by constructing a yellow smiley face with black eyes and a curved mouth within an SVG canvas. The eyebrows are not present; instead, the code uses `d3.select` to append and position circles and a `path` element with an arc generator for the mouth. It relies on D3 v5's `arc()` API and inline attributes to render the face geometry at the viewport center.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

Comments

Sign in to join the discussion.

MIT Licensed