11594097
This example renders a stylized decorated cake using D3. It builds the SVG scene from fixed-position shapes: layered rectangles form the cake tiers, while paths, circles, and ellipses add frosting, sprinkles, cherries, plate, and candles. The code relies on the D3 selection and append API to construct the drawing, with random sprinkle placement and a fixed color palette.