# ChartWaterfallItem

An immutable opening balance, change or calculated checkpoint at an explicit waterfall display coordinate.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartWaterfallItem.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L25)

**Modifiers**

sealed

An immutable opening balance, change or calculated checkpoint at an explicit waterfall display coordinate.

## Inheritance

- object
- ChartWaterfallItem

## Usage

 Explore 10 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 6

- Property [ChartSeries.WaterfallItems](/api/chartforgex-core-chartseries/#property-waterfallitems)
- Method [ChartWaterfallItem.Delta](/api/chartforgex-core-chartwaterfallitem/#method-delta-double-double)
- Method [ChartWaterfallItem.OpeningBalance](/api/chartforgex-core-chartwaterfallitem/#method-openingbalance-double-double)
- Method [ChartWaterfallItem.Subtotal](/api/chartforgex-core-chartwaterfallitem/#method-subtotal-double)
- Method [ChartWaterfallItem.Total](/api/chartforgex-core-chartwaterfallitem/#method-total-double)
- Property [VisualArtifactInterchangeWaterfallArtifact.Items](/api/chartforgex-visualartifacts-visualartifactinterchangewaterfallartifact/#property-items)

### Accepted by parameters 4

- Method [Chart.AddWaterfall](/api/chartforgex-core-chart/#method-addwaterfall-string-collections-generic-ienumerable-chartforgex-core-chartwaterfallitem-nullable-chartforgex-primitives-chartcolor) parameter `items`
- Method [ChartSeries.CreateWaterfall](/api/chartforgex-core-chartseries/#method-createwaterfall-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-chartwaterfallitem-nullable-chartforgex-primitives-chartcolor) parameter `items`
- Method [ChartSeries.ReplaceWaterfallItems](/api/chartforgex-core-chartseries/#method-replacewaterfallitems-collections-generic-ienumerable-chartforgex-core-chartwaterfallitem) parameter `items`
- Method [ChartSeries.UpdateWaterfallItem](/api/chartforgex-core-chartseries/#method-updatewaterfallitem-int32-chartforgex-core-chartwaterfallitem) parameter `item`

 Filter members   

    Show inherited   

 

## Methods

 Delta 2 overloads 

 `public static ChartWaterfallItem Delta(double x, double value)` [#](#method-delta-double-double) 

[ChartWaterfallItem.cs:31](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L31)

Creates a finite change to the running balance at the supplied display coordinate.

Parameters

**x double required**

**value double required**

Returns

 `ChartWaterfallItem` 

 `public static ChartWaterfallItem Delta(DateTime x, double value)` [#](#method-delta-datetime-double) 

[ChartWaterfallItem.cs:45](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L45)

Creates a change at a date/time coordinate, using the same UTC conversion as [ChartPoint](/api/chartforgex-primitives-chartpoint/).

Parameters

**x System.DateTime required**

**value double required**

Returns

 `ChartWaterfallItem` 

 OpeningBalance 2 overloads 

 `public static ChartWaterfallItem OpeningBalance(double x, double value)` [#](#method-openingbalance-double-double) 

[ChartWaterfallItem.cs:25](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L25)

Creates a finite opening balance drawn from zero. It must be the first item and may occur only once.

Parameters

**x double required**

**value double required**

Returns

 `ChartWaterfallItem` 

 `public static ChartWaterfallItem OpeningBalance(DateTime x, double value)` [#](#method-openingbalance-datetime-double) 

[ChartWaterfallItem.cs:42](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L42)

Creates an opening balance at a date/time coordinate, using the same UTC conversion as [ChartPoint](/api/chartforgex-primitives-chartpoint/).

Parameters

**x System.DateTime required**

**value double required**

Returns

 `ChartWaterfallItem` 

 Subtotal 2 overloads 

 `public static ChartWaterfallItem Subtotal(double x)` [#](#method-subtotal-double) 

[ChartWaterfallItem.cs:36](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L36)

Creates a subtotal spanning the preceding checkpoint balance to the current balance, without changing that balance.

Parameters

**x double required**

Returns

 `ChartWaterfallItem` 

 `public static ChartWaterfallItem Subtotal(DateTime x)` [#](#method-subtotal-datetime) 

[ChartWaterfallItem.cs:48](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L48)

Creates a subtotal at a date/time coordinate, using the same UTC conversion as [ChartPoint](/api/chartforgex-primitives-chartpoint/).

Parameters

**x System.DateTime required**

Returns

 `ChartWaterfallItem` 

 Total 2 overloads 

 `public static ChartWaterfallItem Total(double x)` [#](#method-total-double) 

[ChartWaterfallItem.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L39)

Creates a cumulative total drawn from zero, without changing the running balance.

Parameters

**x double required**

Returns

 `ChartWaterfallItem` 

 `public static ChartWaterfallItem Total(DateTime x)` [#](#method-total-datetime) 

[ChartWaterfallItem.cs:51](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L51)

Creates a cumulative total at a date/time coordinate, using the same UTC conversion as [ChartPoint](/api/chartforgex-primitives-chartpoint/).

Parameters

**x System.DateTime required**

Returns

 `ChartWaterfallItem` 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public double X { get; }` [#](#property-x) 

[ChartWaterfallItem.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L15)

Gets the display coordinate. Items accumulate in input order, independently of axis reversal.

 `public ChartWaterfallItemKind Kind { get; }` [#](#property-kind) 

[ChartWaterfallItem.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L18)

Gets whether the item supplies an opening balance or change, or requests a calculated subtotal or total.

 `public double? Value { get; }` [#](#property-value) 

[ChartWaterfallItem.cs:21](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartWaterfallItem.cs#L21)

Gets the supplied opening balance or change, or null for a calculated checkpoint.

<!-- PowerForge markdown artifact sha256:B94389FCD5605140120821071CAAC7F817C3BC1E1A7BB6EBAADFA2D8631E729E -->
