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)

6b8ad709bf06437eb62203a9c807993b

Let's make a face with D3.js

0 stars1🌍 Public
PPiotrekW2
Last edited Feb 19, 2019
Created on Feb 19, 2019

This example uses D3.js v5 and SVG to draw a simple, stylized face on a 960×500 pixel canvas. The code creates a single yellow circle with a black outline, centered both horizontally and vertically, by setting the radius to half the SVG height. It demonstrates basic SVG shape construction and attribute manipulation through D3's `select` and `append` methods, using the `attr` function to position and style the circle. No data source is involved; the visualization is purely programmatic.

AI-generated description