Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lets make a face with D3

Public visualization

Lets make a face with D3

0 stars0🌍 Public
IiXilef
Last edited Mar 29, 2021
Created on Mar 29, 2021
Forked from D3 Starter

This example demonstrates how to build a simple cartoon face using D3 version 6’s selection and shape APIs. The SVG output shows a yellow circle for the head, two eyes, eyebrows as rectangles, and a mouth drawn with the `d3.arc` shape generator. The code uses `select` and `attr` to position elements relative to the SVG center, while the arc’s inner and outer radii define the smile. No external data is loaded; all shapes are hardcoded in JavaScript.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed