Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Viewing a saved revision (read-only)

fd03da5d04374f208bb081606bfd9edd

Let's make a face with D3.js!

0 stars0🌍 Public
支支良
Last edited Mar 28, 2020
Created on Mar 28, 2020

This example draws a smiling face using D3.js v5 with SVG. The code builds circles, ellipses, and an arc path, applying linear gradients to the face and features. It uses `d3.select` to manipulate SVG elements, `d3.arc` to generate the mouth, and fixed numeric attributes for positioning. The face, eyes, and mouth are filled with gradient colors defined in SVG `defs`.

AI-generated description