🌍 Public
Viewing a saved revision (read-only)
dcd96f7b358845dc8278c9c0ae12d2df
A face with d3.js!
This example draws a cartoon face using D3 v5. A yellow circle forms the head, with white eye circles and blue pupils that animate vertically using chained `transition()` calls. The pupils repeatedly shift up and down over three seconds. A mouth is rendered as an arc path using D3’s `arc()` generator. The SVG is centered and positioned using translation transforms, with all shapes created via `select` and `append` on an SVG canvas.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.