Skip to main content
100%

Fork of Fork of Fork of d3js

✓ Published0🌍 Public
Ssgm202
Last edited Nov 20, 2022
Created on Nov 20, 2022

This example renders a simple yellow smiley face using SVG elements created with D3 v5. The visualization shows a large circle for the face, two smaller black circles for eyes, and an arc path for the mouth, all positioned within an 960×500 SVG canvas. The code uses D3’s `select` and `arc` APIs, along with standard SVG attributes like `attr("r")`, `attr("cx")`, and `attr("cy")`, to construct the shapes. The mouth is generated via the `arc()` generator with specified inner and outer radii and angular extents.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes