WaterfallData

data class WaterfallData(val entries: ImmutableList<WaterfallEntry>)(source)

Ordered changes and computed totals. At least one entry is required by WaterfallChart. Changes and every intermediate balance must be finite. A total carries no supplied value, so it cannot add the same amount twice. Consecutive totals display the same balance.

Constructors

Link copied to clipboard
constructor(entries: ImmutableList<WaterfallEntry>)
constructor(entries: List<WaterfallEntry>)

Copies entries into an immutable list, including results of domain-model mapping with map.

Properties

Link copied to clipboard
val entries: ImmutableList<WaterfallEntry>

Functions

Link copied to clipboard

Returns the computed balance after the source entry at index, for use with ChartSelection. Uses Double addition in entry order, as the chart does. index must be within entries.