Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3-1: Making a face by Mansi

Public visualization

Fork of D3-1: Making a face by Mansi

0 stars0🌍 Public
MMansiVyas1821
Last edited Jan 27, 2023
Created on Jan 16, 2023

This example uses D3.js to draw a simple cartoon face on an SVG canvas. It shows a yellow circle as the head, with two blue eyes, rectangular eyebrows, and a mouth created using D3's `arc` function. The code uses D3 selections and attribute methods like `attr` to set positions and sizes, and an SVG `path` element for the mouth. The face is centered within a 960x500 SVG container.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed