Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lets make a face with D3.js

Public visualization

Viewing a saved revision (read-only)

d9e1c4621ab347a1b6aab13d2051b3ac

Lets make a face with D3.js

0 stars0🌍 Public
Oosaka004
Last edited Mar 24, 2020
Created on Mar 24, 2020

This example draws a smiling face using SVG primitives and D3.js. A yellow circle forms the head, while two black circles create the eyes, and a mouth is generated with the `d3.arc` function, which defines a path with specified inner and outer radii and angle ranges. The code uses D3’s selection and attribute methods to position elements relative to the SVG’s center.

AI-generated description

An example including some commonly used features of SVG.