Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Let's make a face with D3.js! by kiran jyothi bodduluri - 11604571

Public visualization

Viewing a saved revision (read-only)

46539e439fe1496f9bd732f4aaa5f221

Fork of Fork of Let's make a face with D3.js! by kiran jyothi bodduluri - 11604571

0 stars0🌍 Public

This example demonstrates fundamental DOM manipulation with D3.js by constructing a static smiley face out of SVG elements, including eyes, pupils, eyebrows, a nose, ears, glasses, blush circles, a mouth, teeth, and a beard. The code uses d3.select to create and style each shape, d3.arc to generate the nose and mouth paths, and a data join with d3.selectAll to bind an array of numbers to rectangular teeth. The purple face, black features, and red glasses are rendered entirely in SVG, with fixed coordinates and transforms, showing how D3 can build complex graphics through direct attribute manipulation.

AI-generated description

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