Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes

Public visualization

Viewing a saved revision (read-only)

e2f54b0c219b44c9b39f850a0d7048a8

Shapes

0 stars0🌍 Public
NNita
Last edited Mar 2, 2025
Created on Mar 2, 2025

A stylized birthday cake visualization renders a multi-layered dessert with colored icing, sprinkles, chocolate drips, and seven striped candles with flickering flames. Drawn with D3.js primitives such as `append`, `ellipse`, `rect`, and `path`, the design is generated procedurally from random drip heights and symmetrical candle placement. The React wrapper uses `ResizeObserver` to recompute the SVG dimensions adaptively, while `renderSVG` manages the canvas and `renderBarChart` clears and redraws all shapes on each container resize.

AI-generated description