# ChartPoints

Creates common ChartPoint sequences for chart series.

 Class  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

[ChartPoints.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartPoints.cs#L17)

**Modifiers**

static

Creates common [ChartPoint](/api/chartforgex-primitives-chartpoint/) sequences for chart series.

## Inheritance

- object
- ChartPoints

 Filter members   

    Show inherited   

 

## Methods

 FromValues 3 overloads 

 `public static ChartPoint[] FromValues(params double[] values)` [#](#method-fromvalues-double) 

[ChartPoints.cs:17](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartPoints.cs#L17)

Creates one-based x/y points from y values.

Parameters

**values double[] required**

The y values.

Returns

 `ChartPoint[]` Chart points with x values starting at one, or an empty array for empty input. 

 `public static ChartPoint[] FromValues(IEnumerable<double> values)` [#](#method-fromvalues-collections-generic-ienumerable-system-double) 

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

Creates one-based x/y points from y values.

Parameters

**values System.Collections.Generic.IEnumerable<double> required**

The y values.

Returns

 `ChartPoint[]` Chart points with x values starting at one, or an empty array for empty input. 

 `public static ChartPoint[] FromValues(IEnumerable<double?> values, ChartMissingDataPolicy missingDataPolicy = Gap)` [#](#method-fromvalues-collections-generic-ienumerable-system-nullable-system-double-chartforgex-core-chartmissingdatapolicy) 

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

Creates one-based finite points, preserving missing slots as horizontal gaps and segment breaks.

Parameters

**values System.Collections.Generic.IEnumerable<double?> required**

**missingDataPolicy ChartForgeX.Core.ChartMissingDataPolicy = Gap optional**

Returns

 `ChartPoint[]` 

 FromXY 2 overloads 

 `public static ChartPoint[] FromXY(IEnumerable<double> x, IEnumerable<double> y)` [#](#method-fromxy-collections-generic-ienumerable-system-double-collections-generic-ienumerable-system-double) 

[ChartPoints.cs:43](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/ChartPoints.cs#L43)

Creates x/y points from matching x and y value sequences.

Parameters

**x System.Collections.Generic.IEnumerable<double> required**

The x values.

**y System.Collections.Generic.IEnumerable<double> required**

The y values.

Returns

 `ChartPoint[]` Chart points using the supplied x and y values, or an empty array when both sequences are empty. 

 `public static ChartPoint[] FromXY(IEnumerable<double> x, IEnumerable<double?> y, ChartMissingDataPolicy missingDataPolicy = Gap)` [#](#method-fromxy-collections-generic-ienumerable-system-double-collections-generic-ienumerable-system-nullable-system-double-chartforgex-core-chartmissingdatapolicy) 

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

Creates finite points from matching positions and nullable observations. Missing slots retain their supplied positions.

Parameters

**x System.Collections.Generic.IEnumerable<double> required**

**y System.Collections.Generic.IEnumerable<double?> required**

**missingDataPolicy ChartForgeX.Core.ChartMissingDataPolicy = Gap optional**

Returns

 `ChartPoint[]` 

## 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?` 

<!-- PowerForge markdown artifact sha256:154AE1F17777879F593A8554344297712878782547C9ECC465BAFB32D2877C7F -->
