Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
DDaniel Hug
Last edited Oct 15, 2020
Created on Oct 15, 2020

A smiling face rendered as an SVG graphic uses D3.js to demonstrate fundamental DOM manipulation. The face’s eyebrows move dynamically, driven by JavaScript code that selects and updates SVG elements. The example leverages D3’s `select` and `arc` functions to construct and position the facial features. The visualization is built with D3 v5 and displayed in an HTML page with a 960 by 500 pixel SVG canvas, with the interaction logic contained in a separate `bundle.js` file.

AI-generated description

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

MIT Licensed

Similar vizzes