Skip to main content
100%

let's make a face with d3.js

✓ Published2🌍 Public
RRoque Luís Pina
Last edited Feb 1, 2021
Created on Feb 1, 2021
Forked from HTML cars Report

A yellow circle with black eyes and an arc-based mouth forms a simple cartoon face in an SVG canvas. The code uses d3-selection to append and position the circles, while the mouth is drawn with d3.arc() using inner and outer radii plus start and end angles. All shapes are rendered directly as SVG elements, with dimensions derived from the SVG attributes. The face is centered within a 680×500 viewport, demonstrating basic geometric composition without data binding or interaction.

AI-generated description
MIT Licensed

Similar vizzes