Skip to main content
100%

d3js

✓ Published7🌍 Public
Ppei9223
Last edited Sep 11, 2022
Created on Sep 10, 2022

A yellow smiley face with black outlines and animated eyebrows is drawn in a 960x500 SVG canvas using D3 v5. The face comprises circles for the head and eyes, rectangles for eyebrows, and a path generated with the D3 `arc` function for the mouth. The `d3.select` and `d3.transition` APIs animate the eyebrow group’s vertical position over two seconds, creating a blinking effect. All shapes are appended to a central group, with code structured for clarity.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes