# ChartDifferencePoint

Two named observations at one X coordinate, retained in authored order even when they cross.

 Struct  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartDifferencePoint.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDifferencePoint.cs#L23)

**Base**

`ValueType`

**Modifiers**

sealed

Two named observations at one X coordinate, retained in authored order even when they cross.

## Inheritance

- ValueType
- ChartDifferencePoint

## Usage

 Explore 9 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 3

- Property [ChartDifferenceAlignment.Points](/api/chartforgex-core-chartdifferencealignment/#property-points)
- Method [ChartDifferencePoints.FromXY](/api/chartforgex-core-chartdifferencepoints/#method-fromxy-collections-generic-ienumerable-system-double-collections-generic-ienumerable-system-nullable-system-double-collections-generic-ienumerable-system-nullable-system-double-chartforgex-core-chartmissingdatapolicy-threading-cancellationtoken)
- Property [ChartSeries.DifferencePoints](/api/chartforgex-core-chartseries/#property-differencepoints)

### Accepted by parameters 6

- Method [Chart.AddDifferenceArea](/api/chartforgex-core-chart/#method-adddifferencearea-string-collections-generic-ienumerable-chartforgex-core-chartdifferencepoint-nullable-chartforgex-primitives-chartcolor) parameter `points`
- Method [Chart.AddDifferenceArea``1](/api/chartforgex-core-chart/#method-adddifferencearea-string-collections-generic-ienumerable-func-chartforgex-core-chartdifferencepoint-nullable-chartforgex-primitives-chartcolor) parameter `observation`
- Method [ChartSeries.ApplyDifferenceChanges](/api/chartforgex-core-chartseries/#method-applydifferencechanges-collections-generic-ienumerable-chartforgex-core-chartobservationchange-chartforgex-core-chartdifferencepoint-nullable-system-int32-int32-threading-cancellationtoken) parameter `changes`
- Method [ChartSeries.CreateDifferenceArea](/api/chartforgex-core-chartseries/#method-createdifferencearea-chartforgex-core-chartseriesid-string-collections-generic-ienumerable-chartforgex-core-chartdifferencepoint-nullable-chartforgex-primitives-chartcolor) parameter `values`
- Method [ChartSeries.ReplaceDifferencePoints](/api/chartforgex-core-chartseries/#method-replacedifferencepoints-collections-generic-ienumerable-chartforgex-core-chartdifferencepoint) parameter `values`
- Method [ChartSeries.UpdateDifferencePoint](/api/chartforgex-core-chartseries/#method-updatedifferencepoint-int32-chartforgex-core-chartdifferencepoint) parameter `value`

 Filter members   

    Show inherited   

 

## Constructors

 ChartDifferencePoint 2 overloads 

 `public ChartDifferencePoint(double x, double first, double second, bool breakBefore = false)` [#](#constructor-ctor-double-double-double-boolean) 

[ChartDifferencePoint.cs:23](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDifferencePoint.cs#L23)

Creates a finite pair. Positive fill means First is greater than Second.

Parameters

**x double required**

The numeric horizontal coordinate.

**first double required**

The first authored value.

**second double required**

The second authored value.

**breakBefore bool = false optional**

Whether a new disconnected segment starts at this pair.

 `public ChartDifferencePoint(DateTime x, double first, double second, bool breakBefore = false)` [#](#constructor-ctor-datetime-double-double-boolean) 

[ChartDifferencePoint.cs:35](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDifferencePoint.cs#L35)

Creates a date/time pair. Local dates convert to UTC; unspecified dates are treated as UTC.

Parameters

**x System.DateTime required**

The date/time horizontal coordinate.

**first double required**

The first authored value.

**second double required**

The second authored value.

**breakBefore bool = false optional**

Whether a new disconnected segment starts at this pair.

## Inherited Methods

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

Inherited from ValueType

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from ValueType

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

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

Inherited from ValueType

Returns

 `string?` 

## Properties

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

[ChartDifferencePoint.cs:9](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDifferencePoint.cs#L9)

Gets the horizontal coordinate.

 `public double First { get; }` [#](#property-first) 

[ChartDifferencePoint.cs:11](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDifferencePoint.cs#L11)

Gets the first authored value; it is not necessarily the lower value.

 `public double Second { get; }` [#](#property-second) 

[ChartDifferencePoint.cs:13](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartDifferencePoint.cs#L13)

Gets the second authored value; it is not necessarily the upper value.

 `public bool BreakBefore { get; }` [#](#property-breakbefore) 

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

Gets whether both boundaries and their fill start a disconnected segment here.

<!-- PowerForge markdown artifact sha256:652285A3632E5DB4C89EDDC2B39782015EE1487D373D4263E3995C5F40126A93 -->
