
Waterfall bridge
@opus-motion-library/waterfall-bridge
A waterfall / bridge chart: an opening total, then floating increase and decrease bars that grow one after another from the running level, joined by dashed connectors, with signed count-up values and a closing total; vertical on 16:9 and 1:1, horizontal on 9:16.
インストール
node cli/mgl.mjs add waterfall-bridge --to <your-project>/src使いどころ
- 向いている
- Explaining how one number became another: revenue bridge, profit walk, budget variance, headcount change, price-volume-mix. Give the opening total, the deltas and let the end total compute itself.
仕様
- 長さ
- 180f · 6s
- 長さの種類
- 固定
- FPS
- 30
- スタイル
- nature, hud
- ライセンス
- MIT
Props(22)
stepsarray= [{"label":"Opening","value":120,"total":true},{"label":"New customers","value":45},{"label":"Upgrades","value":30},{"…bars in order [{label, value, total?}]; total:true sets the running level (usually the first), otherwise value is a +/- change
autoTotalboolean= trueappend a closing total bar computed from the steps
endLabelstring= "Closing"label of the closing total bar
titlestring= "From opening to closing"headline (empty = none)
subtitlestring= "What moved the number, in thousands"small line under the headline (empty = none)
prefixstring= ""text before numbers, e.g. "$"
suffixstring= "K"text after numbers, e.g. "K", "%"
decimalsnumber= 0decimal places
showConnectorsboolean= truedashed lines joining bars at the running level
showGridboolean= truevalue gridlines (with axis labels on 16:9 and 1:1)
showLegendboolean= trueincrease / decrease / total legend
increaseLabelstring= "Increase"legend text for increases (empty = hide entry)
decreaseLabelstring= "Decrease"legend text for decreases
totalLabelstring= "Total"legend text for totals
increaseColorstring= "#16B39A"colour of increase bars
decreaseColorstring= "#E5487F"colour of decrease bars
totalColorstring= "#2F6FED"colour of total bars
backgroundstring= "#F5F3EE"page colour, or "transparent"
inkstring= "#18212B"text and grid colour
fontFamilystring= ""CSS font family (empty = Space Grotesk)
startAtnumber= 10frame the first bar starts
speednumber= 1animation speed multiplier