Fork of Fork of Let's make a face with D3.js! by kiran jyothi bodduluri - 11604571
✓ Published0🌍 Public
JJasvitha Allamsetty
Last edited Feb 24, 2023
Created on Feb 24, 2023
This example constructs a cartoon face entirely with D3.js v5, using SVG shapes such as circles, rectangles, and paths to add eyes, eyebrows, ears, teeth, and glasses. The code demonstrates fundamental DOM manipulation by selecting the root SVG and appending each facial feature with methods like `attr`, while also using `d3.arc` to generate the nose and mouth. The face is static, with no animation or interactivity, and displays a yellow head, black features, and pink blush on a white canvas.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed