Skip to main content
100%

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

✓ Published0🌍 Public
Vvedasrivarma13@gmail.com
Last edited Feb 28, 2024
Created on Feb 28, 2024

This example demonstrates how to build a stylized smiley face with SVG using D3.js v5, showing how to select elements, append shapes, and apply transformations. The code creates a blue circular head, heart-shaped eyes, rectangular eyebrows, and a mouth using the `d3.arc` path generator. The eyebrows are positioned dynamically based on variables like `eyeSpacing` and `eyebrowYOffset`, but the visualization remains static—it renders the face once without any interactive or animated behavior. The project is a fork of a tutorial by VedasriTulabandula, using D3’s `select` and `arc` APIs.

AI-generated description

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

MIT Licensed

Similar vizzes