Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of make a face d3js

Public visualization

Viewing a saved revision (read-only)

ada7ffcfb79c407890d9ba54a8b38e4f

Fork of Fork of make a face d3js

0 stars0🌍 Public
GGodspower Wodi
Last edited Feb 22, 2022
Created on Feb 22, 2022

This example draws a simple smiling face using D3.js, with a yellow circular head, white elliptical eyes with dark pupils, and a wide arc-shaped mouth. The face is rendered as SVG elements within a 960×500 viewport, with the head centered and the mouth positioned using D3’s `arc` generator to create a path. The code explicitly selects the SVG canvas and appends shapes using D3’s selection API, setting attributes like fill, stroke, and geometry directly.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.