ChartLayerSurface
public sealed class ChartLayerSurfaceThe surface of a ChartLayerMark.Surface layer, Swift Charts 3D's SurfacePlot(x:y:z:function:):
y = f(x, z) over the chart's X and Z domains, or a grid sampled from the bound X, Y and Z columns when there is no
function. Drawn by the Chart Guru 3D add-on.
Remarks
Section titled “Remarks”Definitions hold no delegates, so the function is persisted as text: a name such as sinc, which the add-on
resolves, or a function in the Swift expression subset, such as sin(x) * cos(z) or the closure
{ x, z in let r = sqrt(x * x + z * z); return sin(r) }, which it evaluates live. Swift imports store
closures in that form.
Methods
Section titled “Methods”
Clone()
Section titled “Clone()”public ChartLayerSurface Clone()Returns a deep copy.
Returns
ChartGuru.ChartLayerSurface
Constructors
Section titled “Constructors”
ChartLayerSurface()
Section titled “ChartLayerSurface()”public ChartLayerSurface()Properties
Section titled “Properties”
Function
Section titled “Function”public string Function { get; set; }The surface function: a name, an expression over x and z or a Swift closure; empty samples the bound columns.
Returns
System.String
HasFunction
Section titled “HasFunction”public bool HasFunction { get; }True when the surface is drawn from a function instead of the bound columns.
Returns
System.Boolean
public SurfaceStyle Style { get; set; }Returns
ChartGuru.SurfaceStyle
OverrideGradient
Section titled “OverrideGradient”public bool OverrideGradient { get; set; }Returns
System.Boolean
Gradient
Section titled “Gradient”public Gradient Gradient { get; set; }Returns
UnityEngine.Gradient
OverrideHeightRange
Section titled “OverrideHeightRange”public bool OverrideHeightRange { get; set; }Returns
System.Boolean
HeightRange
Section titled “HeightRange”public Vector2 HeightRange { get; set; }Returns
UnityEngine.Vector2