Skip to main content
100%

Fork of Lets make a face with D3.js!

✓ Published0🌍 Public
Ppangaotata
Last edited May 27, 2021
Created on Mar 24, 2021

This example draws a simple face using D3.js, with a large yellow circle for the head, two black eyes, and an orange mouth. The rendering renders directly to an SVG canvas, with the face elements positioned relative to the center of the 960 by 500 viewport. The code uses `d3.select` and `d3.arc` from the D3 v6 library, along with `d3.line` to define the mouth’s path, applying fills and strokes to the shapes.

AI-generated description
MIT Licensed

Similar vizzes