🌍 Public
Viewing a saved revision (read-only)
c6d53606f07c4f2b9fabaaf3f0de8f44
Make a face with d3.js
This example uses d3.js to draw a smiling face directly in SVG. A yellow circle forms the head, with two smaller black circles for eyes and an arc-generated path for the mouth. The code positions elements by translating to the center of an SVG canvas and uses d3’s `select` and `arc` API to create shapes, all rendered with fixed pixel coordinates.
AI-generated descriptionAn example including some commonly used features of SVG.