Skip to content

ChartLayerSurface

ClassChartGuruChartGuru
public sealed class ChartLayerSurface

The 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.

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.

public ChartLayerSurface Clone()

Returns a deep copy.

Returns

ChartGuru.ChartLayerSurface

public ChartLayerSurface()

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

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

public bool OverrideGradient { get; set; }

Returns

System.Boolean

public Gradient Gradient { get; set; }

Returns

UnityEngine.Gradient

public bool OverrideHeightRange { get; set; }

Returns

System.Boolean

public Vector2 HeightRange { get; set; }

Returns

UnityEngine.Vector2