Waterfall bridge
Vista previa de Waterfall bridge
Primitiva

Waterfall bridge

@opus-motion-library/waterfall-bridge

De Opus Motion Library

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.

Instalación

node cli/mgl.mjs add waterfall-bridge --to <your-project>/src

Cuándo usarlo

Ideal para
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.

Especificaciones

Duración
180f · 6s
Tipo de duración
Fija
FPS
30
Estilo
nature, hud
Licencia
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= true

    append 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= 0

    decimal places

  • showConnectorsboolean= true

    dashed lines joining bars at the running level

  • showGridboolean= true

    value gridlines (with axis labels on 16:9 and 1:1)

  • showLegendboolean= true

    increase / 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= 10

    frame the first bar starts

  • speednumber= 1

    animation speed multiplier

Categorías