Skip to main content
100%

d3map

✓ Published1🌍 Public
Nnstafford
Last edited Jun 10, 2021
Created on Jun 4, 2021

This example draws a simple cartoon face using D3 v6, constructing a yellow circular head with black eyes, eyebrows, and a mouth. The code uses d3.arc to create the mouth path and shows mouseover and mouseout console events on that shape. The eyebrows animate by transitioning their group’s transform attribute between two positions over 500 milliseconds each. All shapes render as SVG elements, positioned relative to the center of the 960 by 500 pixel viewport.

AI-generated description

Lets make a face tutorial...

MIT Licensed

Similar vizzes