WaterfallEntry

sealed interface WaterfallEntry(source)

One labeled step in a WaterfallChart. The running balance starts at zero.

Inheritors

Types

Link copied to clipboard
data class Change(val category: String, val amount: Double) : WaterfallEntry

Adds amount to the previous balance. Use a change for an opening balance too.

Link copied to clipboard
data class Total(val category: String) : WaterfallEntry

Displays the computed balance from zero, leaving the balance unchanged.

Properties

Link copied to clipboard
abstract val category: String