Skip to main content
100%

make a face with d3.js

✓ Published1🌍 Public
DDominika Modzelewska
Last edited Oct 28, 2019
Created on Oct 27, 2019

This example draws a simple face using D3.js version 5, rendered as SVG. The code uses `d3.select` to target the SVG element and `svg.append` to create circles for the face, eyes, and eye highlights, with fixed coordinates and styling for stroke and fill. The resulting graphic is a static, yellow face with red-outlined eyes, demonstrating basic D3 shape creation without interaction or data binding.

AI-generated description
MIT Licensed

Similar vizzes