Skip to content

ChartDataRow

StructChartGuruChartGuru
public readonly struct ChartDataRow

Zero-copy typed view of one row in an immutable ChartGuru.ChartDataFrame.

public bool IsValid(string columnName)

Reports whether the named column contains a valid value in this row.

Parameters

Name Type
columnName System.String

Returns

System.Boolean

public string GetDisplayValue(string columnName)

Gets the named value as display text, returning empty text for missing data.

Parameters

Name Type
columnName System.String

Returns

System.String

public bool TryGetNumber(string columnName, out double value)

Attempts to read the named row value as a finite double through its column conversion.

Parameters

Name Type
columnName System.String
value System.Double

Returns

System.Boolean

public T Get<T>(string columnName)

Gets the named typed value, throwing when the column type differs or this row has no valid value.

Parameters

Name Type
columnName System.String

Returns

{T}

public int RowIndex { get; }

Returns

System.Int32

public object this[string columnName] { get; }

Parameters

Name Type
columnName System.String

Returns

System.Object