Skip to main content
100%

make a face with d3.js

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

A simple face built from SVG shapes using D3 v5. The code creates a yellow circle with a red stroke for the head, two eyes with white pupils, and a mouth drawn as an arc path. It uses `d3.select` and `d3.arc` to position elements at fixed coordinates on a 960×500 SVG canvas. The example demonstrates basic D3 shape generation and attribute manipulation without data binding.

AI-generated description
MIT Licensed

Similar vizzes