kor TürkçeGitHub

Waterfall

Explains how a value changed.

kor/ui/WaterfallSource

When to use

  • Use it for profit bridges and budget changes.

Examples

From revenue to profit

Loading the example

<k:Waterfall unit="thousand TRY" height="220">
	<k:WaterfallStep label="Revenue" value="920" kind="total"/>
	<k:WaterfallStep label="Material" value="-410"/>
	<k:WaterfallStep label="Labor" value="-180"/>
	<k:WaterfallStep label="Incentive" value="60"/>
	<k:WaterfallStep label="Energy" value="-95"/>
	<k:WaterfallStep label="Profit" kind="total"/>
</k:Waterfall>

API

Properties

NameTypeDefaultDescription
labelstringAccessible name
decimalsint0Decimal places
unitstringUnit
heightint260Plot height in pixels
upIsGoodbooleantrueWhether an increase is favorable
compactbooleanfalseWhether to use short numbers (1.2M)

Aggregations

NameTypeDescription
stepsWaterfallStep[]Steps

Events

NameTypeDescription
stepPresskey: stringA step was pressed

Methods

NameDescription
getRanges(): { from: number; to: number }[]Where each step starts and ends.

WaterfallStep

A waterfall step.

Properties

NameTypeDefaultDescription
keystringKey
labelstringName
valueanynullAmount of change. Calculated for totals when empty
kindstringchangechange or total

Related

TrendStat