Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
RRC
Last edited Sep 26, 2019
Created on Sep 25, 2019

A simple SVG face made with D3.js v5, drawn entirely from primitive shapes: yellow circle for the head, small black circles for eyes, rectangles for eyebrows, and an arc-generated mouth. The code uses `d3.select` and `d3.arc` to construct the geometry, with a fixed `innerRadius` and `outerRadius` for the smile. All elements are centered via a translated `<g>` group, and faces render directly on a 960×500 SVG canvas with no external data.

AI-generated description
MIT Licensed

Similar vizzes