Skip to main content
100%

Lets make a face

✓ Published1🌍 Public
SShivamsunderam
Last edited Oct 24, 2020
Created on Oct 24, 2020

This example constructs a smiling face out of simple D3 shapes, including circles for the eyes, rectangles for the eyebrows, and arcs for the mouth and nose, all centered within an SVG canvas. The design shows a composition of yellow, black, and green elements, with the eyebrows performing a gentle animated bounce using D3’s `transition()` method. Built with D3 v5 and SVG rendering, the code uses absolute positioning via `attr('transform', ...)` and the `arc()` API to define the curved paths for the facial features.

AI-generated description

Yifu's practice on making a smiley face with d3.js

Tutorial: https://www.youtube.com/watchv=_8V5o2UHG0E&t=1220s

Dec. 24, 2019

MIT Licensed

Similar vizzes