Skip to main content
100%

Fork of sriram

✓ Published0🌍 Public
SSriram-Voruganti
Last edited Feb 22, 2023
Created on Feb 22, 2023
Forked from Hello VizHub

This example uses D3 v5 to construct a cartoon smiley face entirely from SVG shapes. The code demonstrates fundamental DOM manipulation by appending circles, lines, and rectangles for the face, eyes, nose, hair, ears, and teeth. It also uses D3’s `arc()` generator to draw the mouth as a path, and applies basic attributes like `fill` and `stroke` to style each element. The scene is static, with no interaction or animation.

AI-generated description

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

MIT Licensed

Similar vizzes