Skip to main content
100%

Shapes with SVG

✓ Published1🌍 Public
Aabhimanyu-dhar
Last edited May 9, 2021
Created on May 7, 2021
Forked from HTML Starter

This example draws a simple emoticon face using SVG shapes rendered with D3 v6. It shows a yellow circle for the head, two black-outlined eyes, and a mouth created with the `d3.arc()` generator using specified inner and outer radii and angular ranges. The code selects the SVG element, parses its width and height attributes, and positions shapes relative to the center using numeric offsets. The face is constructed entirely with static, hard-coded dimensions and no external data source.

AI-generated description
MIT Licensed

Similar vizzes