Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Aaudreyfr
Last edited Nov 25, 2019
Created on Nov 24, 2019

This example demonstrates how to build an interactive smiley face using D3.js, with eyebrows that animate based on user interaction. The visualization uses SVG elements created and manipulated through D3’s core DOM selection and data-binding methods. The code relies on D3 v5, loaded via a CDN, and includes a video tutorial explaining the process. Rendering occurs entirely in SVG, with styles defined in a separate CSS file. No external data source is used; the face is constructed programmatically.

AI-generated description

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

MIT Licensed

Similar vizzes