Skip to main content
100%

Let's make a face with D3.js!

✓ Published1🌍 Public
Eedxiao97
Last edited Sep 30, 2019
Created on Sep 30, 2019

This example builds a stylized face entirely from SVG shapes using D3.js v5. The face is composed of simple geometric elements—lines for the mouth and eyes, and a filled circle for the head—all positioned within a fixed 960×500 viewport. The code uses `d3.select` to target the SVG container and applies global styling through a linked CSS file, including rounded line caps and joins for a softer look. No data is loaded; instead, the visualization demonstrates fundamental SVG drawing and selection techniques with D3’s core API.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes