Skip to content
ChartForgeX
Class

ChartPoints

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
static

Creates common ChartPoint sequences for chart series.

Inheritance

  • object
  • ChartPoints

Methods

FromValues 3 overloads
public static ChartPoint[] FromValues(params double[] values) #

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) #

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) #

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) #

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) #

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[]