🌍 Public
Viewing a saved revision (read-only)
16f39a14f7cf436791e1853a2df3999b
Let's make a face with D3.js!
This example uses D3.js v5 to construct a smiley face entirely through SVG elements in the DOM. It draws a yellow circle for the face, black circles for the eyes, and a path generated with the `d3.arc` function to form the mouth. The code demonstrates fundamental selections, attribute setting, and shape generation using APIs like `select` and `arc`. The resulting static face is rendered in an SVG container.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.