Class
ChartPoints
ChartForgeX.Core
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[]
- The y values.
public static ChartPoint[] FromValues(IEnumerable<double> values) #Creates one-based x/y points from y values.
Parameters
- values System.Collections.Generic.IEnumerable<double>
- The y values.
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?>
- missingDataPolicy ChartForgeX.Core.ChartMissingDataPolicy = Gap
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>
- The x values.
- y System.Collections.Generic.IEnumerable<double>
- 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>
- y System.Collections.Generic.IEnumerable<double?>
- missingDataPolicy ChartForgeX.Core.ChartMissingDataPolicy = Gap
Returns
ChartPoint[]