Skip to content

PlottableValue<T>

StructChartGuruChartGuru
public readonly struct PlottableValue<T> where T : unmanaged

A labeled value for chart data binding. The label is used for axis titles, tooltips, and legends. This is a high-performance unmanaged struct optimized for Burst compilation.

public readonly FixedString64Bytes Label

Human-readable label for this Value (appears on axes, tooltips).

Returns

Unity.Collections.FixedString64Bytes

public readonly T Value

The actual data value.

Returns

{T}

public readonly PlottableType Type

The inferred type of this value for scale selection.

Returns

ChartGuru.PlottableType

PlottableValue(FixedString64Bytes, T, PlottableType)

Section titled “PlottableValue(FixedString64Bytes, T, PlottableType)”
public PlottableValue(FixedString64Bytes label, T value, PlottableType type)

Creates a Burst-compatible labeled value with an explicit scale-classification hint.

Parameters

Name Type
label Unity.Collections.FixedString64Bytes
value {T}
type ChartGuru.PlottableType
public PlottableValue(string label, T value, PlottableType type)

Creates a Burst-compatible labeled value, copying the label into fixed 64-byte storage.

Parameters

Name Type
label System.String
value {T}
type ChartGuru.PlottableType

public override string ToString()

Returns

System.String

public object BoxedValue { get; }

Gets the value as an object for non-generic usage.

Returns

System.Object

public string LabelString { get; }

Gets the label as a string.

Returns

System.String