Skip to main content
100%

Let's make a face with D3.js

✓ Published1🌍 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
MIT Licensed

Similar vizzes