Skip to main content
100%

Making face with D3.js

✓ Published0🌍 Public
AAbdul Salam Almadani
Last edited Sep 23, 2020
Created on Sep 1, 2020

This example shows a yellow smiley face drawn with D3.js v6, including animated eyebrows that move up and down over three seconds. The face is rendered as SVG inside a 960×500 viewport, centered via a translation group. The code uses D3’s `select` and `arc` APIs to build the mouth path, while circles and rectangles form the eyes and brows. Eyebrow movement relies on chained `transition().duration()` calls that shift the eyebrow group’s `transform` attribute between two vertical offsets, creating a looping bounce effect.

AI-generated description

Smiley faceimplementation with D3.js this is an amazing start to data Visualisation movment :)

MIT Licensed

Similar vizzes