Skip to main content
100%

Lets make a face with D3.js

✓ Published1🌍 Public
Rrajeev-2020
Last edited Jul 30, 2022
Created on Jul 30, 2022
Forked from Hello VizHub

This example shows a simple yellow cartoon face built from SVG shapes in a 960×500 viewport. D3.js (v3) appends a large yellow circle for the head and two smaller black circles for the eyes, then positions a mouth path using the `d3.svg.arc` API with an inner and outer radius. All elements are selected via `d3.select` and placed relative to the SVG width and height attributes, with eye spacing and offset defined as numeric constants.

AI-generated description
MIT Licensed

Similar vizzes