Skip to main content
100%

Fork of Let's make a face with D3.j

✓ Published0🌍 Public
Bbharathavulapati@gmail.com
Last edited Feb 23, 2025
Created on Feb 23, 2025

This example demonstrates fundamental DOM manipulation with D3.js by constructing a boba tea cup using basic SVG shapes. The visualization builds a cup, cap, straw, and tea layer with d3 selections and attribute methods, while randomly positioning black circles to represent boba pearls. Using d3.v5, the code appends elements to an SVG container and applies transforms like rotation to the straw. The rendering approach relies on static SVG geometry rather than data binding, showcasing how D3 can create custom graphics through programmatic element creation and styling.

AI-generated description

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

MIT Licensed

Similar vizzes