Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Jjakirst
Last edited Aug 21, 2019
Created on Aug 20, 2019

A yellow smiley face drawn with SVG elements appears centered on a dark canvas. D3.js constructs the face using fundamental DOM manipulation: circles for the eyes, rectangles for the eyebrows, and an arc-generated path for the mouth. Using `d3.select` and `transition.attr`, the eyebrows animate up and down over repeated two-second intervals. The example demonstrates basic data binding and SVG attribute updates with the d3.v5 library.

AI-generated description

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

MIT Licensed

Similar vizzes