Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Sshallowater
Last edited Jul 11, 2019
Created on Jul 10, 2019

A face is drawn using simple SVG shapes: a large yellow circle for the head, with two smaller black circles for eyes positioned symmetrically around the center. The D3.js v5 library is used to select the SVG element and append these circles, with coordinates calculated from the SVG's width and height attributes. The example demonstrates basic D3 shape creation and attribute manipulation, with the rendering handled entirely by SVG in an HTML document.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes