Skip to content

ChartDataColumn<T>

ClassChartGuruChartGuru
public sealed class ChartDataColumn<T> : ChartDataColumn

Immutable typed values with an optional validity bitmap for missing data.

ChartDataColumn(string, IEnumerable, ChartColumnType?)

Section titled “ChartDataColumn(string, IEnumerable, ChartColumnType?)”
public ChartDataColumn(string name, IEnumerable<T> values, ChartColumnType? type = null)

Copies the sequence into an immutable column, inferring the semantic type when omitted; a null sequence creates an empty column.

Parameters

Name Type
name System.String
values System.Collections.Generic.IEnumerable{{T}}
type System.Nullable{ChartGuru.ChartColumnType}

ChartDataColumn(string, T[], bool[], ChartColumnType?)

Section titled “ChartDataColumn(string, T[], bool[], ChartColumnType?)”
public ChartDataColumn(string name, T[] values, bool[] validity = null, ChartColumnType? type = null)

Copies values and the optional matching validity bitmap, inferring the semantic type when omitted.

Parameters

Name Type
name System.String
values {T}[]
validity System.Boolean[]
type System.Nullable{ChartGuru.ChartColumnType}

public bool TryGetValue(int rowIndex, out T value)

Returns a valid typed value, or false when the row is out of range or marked missing.

Parameters

Name Type
rowIndex System.Int32
value {T}

Returns

System.Boolean

public override bool IsValid(int rowIndex)

Reports the validity flag, treating all in-range rows as valid when no bitmap is supplied.

Parameters

Name Type
rowIndex System.Int32

Returns

System.Boolean

public override object GetValue(int rowIndex)

Returns the boxed row value, or null when the row’s validity flag is false.

Parameters

Name Type
rowIndex System.Int32

Returns

System.Object

public override bool TryGetDouble(int rowIndex, out double value)

Reads a valid numeric row as a finite double, returning false for missing, nonnumeric or nonfinite values.

Parameters

Name Type
rowIndex System.Int32
value System.Double

Returns

System.Boolean

public override Type ValueType { get; }

Returns

System.Type

public override int Count { get; }

Returns

System.Int32

public IReadOnlyList<T> Values { get; }

Returns

System.Collections.Generic.IReadOnlyList{{T}}

public T this[int rowIndex] { get; }

Parameters

Name Type
rowIndex System.Int32

Returns

{T}