Skip to main content
100%

Fork of Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
NNikitha123171
Last edited Feb 24, 2023
Created on Feb 24, 2023

A smiley face is constructed entirely with D3.js v5 SVG primitives, combining circles, rectangles, paths, and lines to form facial features like eyes, glasses, a nose, and a beard. The code demonstrates fundamental DOM manipulation by appending elements to the SVG canvas with chained `.attr()` calls, and uses `d3.arc` for the mouth and nose shapes, while positioning features with absolute and transformed coordinates. The face's eyebrows are static rectangles, and the rendered result is a fixed, non-animated SVG illustration built from hard-coded values.

AI-generated description

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

MIT Licensed

Similar vizzes