Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Blank Slate with Hot nice

Public visualization

Viewing a saved revision (read-only)

2b1ae9ee650c4891a60ff1330f20de35

Fork of Fork of Blank Slate with Hot nice

0 stars0🌍 Public
NNita
Last edited Mar 1, 2025
Created on Feb 28, 2025

This D3.js visualization renders a three-tiered birthday cake with distinct pastel layers, frosting scallops, candles with gradient flames, and decorative toppings like sprinkles and strawberries. The SVG is created dynamically using `d3.select().append()` to build shapes, while `d3.path()` constructs the curved frosting paths. Randomly positioned line elements generate the sprinkles, and radial gradients define the candle flames. The cake sits on an elliptical stand, with a bold text title anchoring the composition. The code explicitly sets the SVG dimensions and viewBox, with all elements drawn procedurally rather than from an external dataset.

AI-generated description

House Visualization

This is a simple D3.js visualization that renders a house.

Usage

  1. Include D3.js in your HTML file
  2. Run the index.js file to see the house visualization

Features

  • Basic house structure with roof
  • Door with doorknob
  • Two windows with cross patterns
  • Chimney
  • Grassy ground