Skip to main content
100%

Let's make a map with D3.js!

✓ Published0🌍 Public
Bbenben1996
Last edited Jan 4, 2019
Created on Jan 4, 2019

This example demonstrates fundamental DOM manipulation and animation with D3.js by constructing an interactive smiley face with yellow circular head, eyes, and animated eyebrows. The visualization uses D3.js v5 to create SVG elements including circles, rectangles, and a path for the mouth via the `d3.arc` API. The eyebrows undergo a looping transition animation using chained `transition().duration(2000)` calls to move up and down. The code shows basic selection, appending, and attribute setting through the `select` and `append` methods.

AI-generated description

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

MIT Licensed

Similar vizzes