PlottableValueRef
public class PlottableValueRefNon-generic wrapper for PlottableValue to allow usage as parameter type. Used for Swift Charts-style APIs like ForegroundStyle(by: .Value(“Label”, data)).
Constructors
Section titled “Constructors”
PlottableValueRef(string, object, PlottableType)
Section titled “PlottableValueRef(string, object, PlottableType)”public PlottableValueRef(string label, object value, PlottableType type = PlottableType.Quantitative)Creates a managed plottable reference for APIs that accept numeric, categorical, or temporal values through one type.
Parameters
| Name | Type |
|---|---|
label |
System.String |
value |
System.Object |
type |
ChartGuru.PlottableType |
Methods
Section titled “Methods”
From(PlottableValue)
Section titled “From(PlottableValue)”public static PlottableValueRef From<T>(PlottableValue<T> plottable) where T : unmanagedBoxes a Burst-compatible plottable value while preserving its label and scale classification.
Parameters
| Name | Type |
|---|---|
plottable |
ChartGuru.PlottableValue{{T}} |
Returns
ChartGuru.PlottableValueRef
ToString()
Section titled “ToString()”public override string ToString()Returns
System.String
Properties
Section titled “Properties”
public string Label { get; }The label for this plottable value.
Returns
System.String
public object Value { get; }The boxed value.
Returns
System.Object
public PlottableType Type { get; }The data type.
Returns
ChartGuru.PlottableType
DateUnit
Section titled “DateUnit”public TimeUnit DateUnit { get; }When set via ChartGuru.PlottableValue.Value(System.String%2cSystem.DateTime%2cChartGuru.TimeUnit%2cSystem.Int32),
carries the date-unit for downstream axis auto-configuration.
Returns
ChartGuru.TimeUnit
DateUnitCount
Section titled “DateUnitCount”public int DateUnitCount { get; }The multiplier for ChartGuru.PlottableValueRef.DateUnit (e.g., every 2 months).
Returns
System.Int32
IsRange
Section titled “IsRange”public bool IsRange { get; }True when ChartGuru.PlottableValueRef.Value carries a ChartBinRange-style interval.
Swift Charts equivalent: .Value(“Label”, lower..<upper) /
.Value(“Label”, lower…upper).
Returns
System.Boolean