Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

image of a cake

Public visualization

Viewing a saved revision (read-only)

fa72746b4d99446689d86babbc004bf0

image of a cake

0 stars1🌍 Public
Ppreethimedipelli@my.unt.edu
Last edited Feb 23, 2025
Created on Feb 23, 2025

This example uses D3.js (v7) to draw a stylized strawberry cheesecake as a static SVG scene. The visualization layers a graham cracker crust, a creamy cheesecake filling, and a red strawberry glaze using SVG shapes like rectangles, ellipses, and circles, with green triangles for leaves and white circles for whipped cream. The code constructs the image procedurally by appending each element to the SVG canvas, using arrays to position repeated strawberries and cream dollops, and a curved path for chocolate drizzle. It serves as a playful, non-data-driven demonstration of D3's shape-drawing and layout capabilities.

AI-generated description