🌍 Public
Viewing a saved revision (read-only)
ef74a3ddb37f439e96c1d01e06d0c7f7
Let's make a face with D3.js!
This example draws a simple smiling face using SVG shapes. It uses D3.js to create a yellow circle for the head and two black circles for the eyes, all with hard-coded positions. The code selects the existing SVG element, calculates width and height from its attributes, and appends circles using selections and the `circle` element API from D3 v5.
AI-generated descriptionAn example showing the capabilities of VizHub.