Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
RRoyCsuka
Last edited Nov 14, 2019
Created on Nov 14, 2019

A smiley face constructed entirely with D3.js demonstrates fundamental SVG DOM manipulation. The static yellow circle, eyes, and arc-based mouth are created using d3.select, d3.append, and the d3.arc shape generator. The eyebrows, rendered as rectangles within a translated group, animate upward and back down over two seconds using chained transition().duration() calls. The example highlights basic data-binding-free element creation and attribute setting within an SVG canvas.

AI-generated description

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

MIT Licensed

Similar vizzes