anim-slides gallery

cloud-spend

A line chart draws on as monthly spend climbs past a budget line, then bends back under it after an autoscaling event.

Monthly cloud spend $k per month · last 12 months within budget over budget back under budget $k 200 150 100 50 0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec month → illustrative budget $155k autoscaling + reserved instances peak $184k $139k −24% vs peak

Swipe sideways to see the whole figure.

Download playable demo
Verb
trace
Archetype
chart
Domain
finance
viewBox
1680 × 600
Control
once: plays one pass, then rests on the finished state
Pass
9.5 s
Tags
cost, budget-threshold, line-draw-on, optimization, monthly-trend
Files
cloud-spend.html (fragment) · cloud-spend-demo.html (playable page) · spec.yaml · thumb.png
Source
pool/cloud-spend/

Paste the fragment into any HTML deck; it plays while an ancestor has the class visible (one pass for once, then it holds the finished state) and otherwise shows its resting frame. Rename the prefix (cloud-spend) when you adapt it so it stays unique in your deck.

spec.yaml

# Monthly cloud spend climbs past budget; autoscaling + reserved instances bend it back under.
# The line draws on month by month in step with the cycle. Scaffold with:
#   python3 scripts/scaffold_from_spec.py pool/cloud-spend/spec.yaml -o pool/cloud-spend/cloud-spend.html
# The published HTML was hand-polished after scaffolding (see pool/cloud-spend/cloud-spend.html).
name: cloud-spend
archetype: chart
verb: trace
title: "Monthly cloud spend"
size: [1680, 600]
control: once
cycle: 9.5
series:
  - { id: spend,  label: Spend,  points: [[1, 96], [2, 104], [3, 115], [4, 128], [5, 143], [6, 160], [7, 184], [8, 178], [9, 165], [10, 152], [11, 144], [12, 139]] }
  - { id: budget, label: Budget, points: [[1, 155], [12, 155]] }
events:
  - { at: 7, label: "Autoscale + reserved" }
phases:
  - { t: 0,  label: setup,   note: "Spend grows with usage" }
  - { t: 3.8, label: over,    note: "Spend crosses the budget" }
  - { t: 4.8, label: fix,    note: "Autoscaling + reserved instances" }
  - { t: 6.8,  label: under,   note: "Back under budget" }
  - { t: 8.5, label: hold }