PlottableValue3D
public class PlottableValue3DLightweight 3D plottable-value reference for Swift-Charts-style
.Value("Beak Length", item.beakLength) calls.
Fields
Section titled “Fields”
public string NameReturns
System.String
ScalarValue
Section titled “ScalarValue”public float ScalarValueReturns
System.Single
CategoryValue
Section titled “CategoryValue”public string CategoryValueReturns
System.String
DateValue
Section titled “DateValue”public DateTime? DateValueReturns
System.Nullable{System.DateTime}
Methods
Section titled “Methods”
Value(string, float)
Section titled “Value(string, float)”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
| Name | Type |
|---|---|
name | System.String |
v | System.Single |
Returns
ChartGuru.PlottableValue3D
Value(string, string)
Section titled “Value(string, string)”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
| Name | Type |
|---|---|
name | System.String |
category | System.String |
Returns
ChartGuru.PlottableValue3D
Value(string, DateTime)
Section titled “Value(string, DateTime)”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
| Name | Type |
|---|---|
name | System.String |
d | System.DateTime |
Returns
ChartGuru.PlottableValue3D
Operators
Section titled “Operators”
implicit operator float(PlottableValue3D)
Section titled “implicit operator float(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
| Name | Type |
|---|---|
v | ChartGuru.PlottableValue3D |
Returns
System.Single
Constructors
Section titled “Constructors”
PlottableValue3D()
Section titled “PlottableValue3D()”public PlottableValue3D()