Skip to main content
100%

d3 course 1

✓ Published1🌍 Public
JJuanmaBV
Last edited Dec 5, 2022
Created on Dec 5, 2022
Forked from HTML Starter

This example renders a cartoon smiley face using D3.js v7 within an SVG canvas. The face is built from basic shapes—a yellow circle, black eyes, eyebrows, and an arc-based mouth—all positioned relative to the SVG's center. An animated transition moves the eyebrows vertically in a two-step sequence, using `transition().duration()` to create a blinking effect. The code imports `select` and `arc` from D3, and leverages SVG attributes like `cx`, `cy`, and `d` to construct the visual.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes