Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
KKelvin Yuen
Last edited Sep 17, 2019
Created on Sep 3, 2019
Forked from Create a bar chart

A yellow circle with black eyes, eyebrows, and a curved mouth forms a simple face on an SVG canvas, centered via a D3-selected group. The eyebrows animate upward and back down using chained `transition.attr` calls over two two-second intervals. The mouth is drawn with the `d3.arc` path generator, while all shapes are appended and styled through D3 v5’s selection and attribute methods.

AI-generated description
MIT Licensed

Similar vizzes