Skip to content

PlottableValue3D

ClassChartGuruChartGuru.3D
public class PlottableValue3D

Lightweight 3D plottable-value reference for Swift-Charts-style .Value("Beak Length", item.beakLength) calls.

public string Name

Returns

System.String

public float ScalarValue

Returns

System.Single

public string CategoryValue

Returns

System.String

public DateTime? DateValue

Returns

System.Nullable{System.DateTime}

public static PlottableValue3D Value(string name, float v)

Creates a named number, like Swift Charts’ .value(“Beak Length”, 42), that positions a 3D mark at v on its axis.

Parameters

NameType
nameSystem.String
vSystem.Single

Returns

ChartGuru.PlottableValue3D

public static PlottableValue3D Value(string name, string category)

Creates a named category. 3D marks position only numbers and dates, so it converts to 0; map categories to numeric positions before building marks.

Parameters

NameType
nameSystem.String
categorySystem.String

Returns

ChartGuru.PlottableValue3D

public static PlottableValue3D Value(string name, DateTime d)

A date value, positioned in seconds from the Unix epoch like every code-built mark’s date (TimeAxisHelper.AxisSeconds(DateTime, double)).

Parameters

NameType
nameSystem.String
dSystem.DateTime

Returns

ChartGuru.PlottableValue3D

public static implicit operator float(PlottableValue3D v)

Converts to the coordinate a 3D mark positions the value at: PlottableValue3D.ScalarValue, which holds seconds since the Unix epoch for a date and 0 for a category; a null value converts to 0.

Parameters

NameType
vChartGuru.PlottableValue3D

Returns

System.Single

public PlottableValue3D()