Skip to main content
100%

Fork of Smiely Cat Fork

✓ Published0🌍 Public
BBelede Rahul
Last edited Feb 27, 2024
Created on Feb 27, 2024
Forked from Smiely Cat Fork

This example uses D3 v7 to draw a simple dog shape in an SVG canvas. It renders a brown head and body as two overlapping circles, adds black eyes, and a curved mouth path. The code builds the graphic by appending SVG elements—circles for the face, eyes, and body, and a path for the smile—directly to the page. The data is hardcoded within the script, with no external dataset or interactive behavior. The rendering relies solely on SVG attributes like cx, cy, r, and d, demonstrating basic shape composition with D3’s selection and append methods.

AI-generated description

A whole smiley face

MIT Licensed

Similar vizzes