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)

77fa055778ba44a18a932a241cd83737

Let's make a face with D3.js

0 stars0🌍 Public
AArsenalRobert
Last edited Mar 21, 2020
Created on Mar 21, 2020

This example creates a simple face using D3.js, drawing a single circle centered within an SVG canvas. The circle’s radius is set to half the SVG’s height, and its horizontal position is centered using the width attribute. The code uses D3’s `select` function to target the SVG element and the `append` method to add the circle, leveraging D3 v5. The rendering approach is straightforward vector graphics via SVG, with the circle’s attributes set dynamically based on the SVG’s dimensions.

AI-generated description

A bare minimum HTML page.

See also React Starter.