Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published3🌍 Public
Eeypkllas@gmail.com
Last edited Apr 22, 2024
Created on Apr 22, 2024

This example demonstrates fundamental DOM manipulation with D3.js by constructing a smiley face whose eyebrows animate. It shows how D3’s selection and mutation methods create and update SVG shapes directly. The code uses `d3.select`, `d3.arc`, and attribute getters to size elements from the SVG element, rendering the face entirely with vector graphics. The face’s eyebrows move, but the specific motion pattern is not detailed in the provided source. The implementation relies on D3 v5 and operates on a blank SVG canvas with no external data source.

AI-generated description

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

MIT Licensed

Similar vizzes