🌍 Public
Viewing a saved revision (read-only)
f485e3d3400b4722986e30334d8bcb00
Fork of D3 Starter
This example shows a simple, static smiley face drawn as vector shapes in an SVG canvas. It uses the D3.js library (v7) to select the SVG element and programmatically append a large yellow circle for the face, two smaller black circles for the eyes, and a path for the mouth. The mouth is created using the `d3.arc` API, which generates an SVG path based on specified inner and outer radii and start/end angles. The code demonstrates fundamental D3 techniques for creating and positioning graphical primitives within a coordinate system.
AI-generated descriptionA demonstration of how to start using D3 version 6.