Skip to content

ManagedPlottableValue

StructChartGuruChartGuru
public readonly struct ManagedPlottableValue

Managed wrapper for PlottableValue that supports string categories directly. Use this for convenience API; it converts to native types internally for rendering. Swift Charts-style .Value() naming for consistency.

public readonly string Label

No description is available for this member.

Returns

System.String — No return description is available.

public readonly object BoxedValue

No description is available for this member.

Returns

System.Object — No return description is available.

public readonly PlottableType Type

No description is available for this member.

Returns

ChartGuru.PlottableType — No return description is available.

ManagedPlottableValue(string, object, PlottableType)

Section titled “ManagedPlottableValue(string, object, PlottableType)”
public ManagedPlottableValue(string label, object value, PlottableType type)

No description is available for this member.

Parameters

Name Type Description
label System.String
value System.Object
type ChartGuru.PlottableType

public static ManagedPlottableValue Value(string label, float data)

Creates a quantitative float value. Swift Charts equivalent: .Value(“Label”, floatValue)

Parameters

Name Type Description
label System.String
data System.Single

Returns

ChartGuru.ManagedPlottableValue — No return description is available.

public static ManagedPlottableValue Value(string label, double data)

Creates a quantitative double value. Swift Charts equivalent: .Value(“Label”, doubleValue)

Parameters

Name Type Description
label System.String
data System.Double

Returns

ChartGuru.ManagedPlottableValue — No return description is available.

public static ManagedPlottableValue Value(string label, int data)

Creates a quantitative int value. Swift Charts equivalent: .Value(“Label”, intValue)

Parameters

Name Type Description
label System.String
data System.Int32

Returns

ChartGuru.ManagedPlottableValue — No return description is available.

public static ManagedPlottableValue Value(string label, string category)

Creates a categorical string value. Swift Charts equivalent: .Value(“Label”, stringCategory)

Parameters

Name Type Description
label System.String
category System.String

Returns

ChartGuru.ManagedPlottableValue — No return description is available.

public static ManagedPlottableValue Value(string label, DateTime data)

Creates a temporal DateTime value. Swift Charts equivalent: .Value(“Label”, dateValue)

Parameters

Name Type Description
label System.String
data System.DateTime

Returns

ChartGuru.ManagedPlottableValue — No return description is available.

public static ManagedPlottableValue Value<TEnum>(string label, TEnum data) where TEnum : Enum

Creates a categorical enum value. Swift Charts equivalent: .Value(“Label”, enumValue)

Parameters

Name Type Description
label System.String
data {TEnum}

Returns

ChartGuru.ManagedPlottableValue — No return description is available.

public float GetNumericValue()

Gets the numeric value for quantitative data, or hash code for categorical.

Returns

System.Single — No return description is available.

public string GetCategoryString()

Gets the string representation for categorical data or labels.

Returns

System.String — No return description is available.

public override string ToString()

No description is available for this member.

Returns

System.String — No return description is available.