Skip to main content
100%

practice13 canvas

✓ Published0🌍 Public
DDi Cui
Last edited May 21, 2023
Created on May 21, 2023
Forked from practice1

This example demonstrates fundamental DOM manipulation with D3.js by rendering a full-screen smiley face whose eyebrows move. It uses an SVG canvas, with D3 selections and the `arc` generator from the d3-shape module to construct facial features. The code appends a background rectangle and relies on D3 v5’s `select` and `attr` methods to style elements dynamically based on the browser’s client dimensions.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes