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)

bf72672d550143d2a39f84d15ce1ffa7

Let's make a face with D3.js!

0 stars0🌍 Public
AAhmed Negm
Last edited Aug 18, 2020
Created on Aug 17, 2020
Forked from HTML Starter

A face is drawn as a single circle centered within an SVG canvas, with its radius set to half the SVG's height. The example demonstrates basic D3.js v5 selection and attribute manipulation using `select`, `append`, and `attr` to position the circle dynamically based on the SVG's `width` and `height` attributes. The SVG is rendered in the browser with no external data source, focusing on simple geometric shape creation through D3's declarative API. The circle's center is computed from the SVG dimensions, and a CSS rule hides page overflow for a clean full-viewport display.

AI-generated description

A bare minimum HTML page.

See also React Starter.