Skip to main content
100%

Fork of Lets make a face with D3.js!

✓ Published0🌍 Public
Nnajeebgdds
Last edited Mar 13, 2021
Created on Mar 13, 2021

This example shows a simple yellow face built entirely with D3.js v6 SVG primitives. The code uses `d3.select` to target the SVG element, then appends circles for the eyes and a face outline, with a mouth drawn using the `d3.arc()` path generator. Coordinates are centered via a translation transform, and eye spacing and offsets are set as constants. The face is static, with no interaction or data binding, rendered directly in the browser through the bundled index.js file.

AI-generated description
MIT Licensed

Similar vizzes