ChartMark3D
public abstract class ChartMark3D : ChartMark, IChart3DMark, IChart3DDataMark, IChartMarkBase class for every 3D mark. Inherits the full 2D ChartMark
authoring surface (foregroundStyle, annotation, offset …) so users don't
have to relearn the API, and then layers ChartMark3D.DataPoint3D,
and a mesh hook on top.
Fields
Section titled “Fields”
_dataPoint3D
Section titled “_dataPoint3D”protected DataPoint3D _dataPoint3DReturns
ChartGuru.DataPoint3D
_offset3D
Section titled “_offset3D”protected Vector3 _offset3DReturns
UnityEngine.Vector3
_symbolRotation
Section titled “_symbolRotation”protected Quaternion _symbolRotationReturns
UnityEngine.Quaternion
protected object _zKeyReturns
System.Object
_metalness
Section titled “_metalness”protected float _metalnessReturns
System.Single
_roughness
Section titled “_roughness”protected float _roughnessReturns
System.Single
Constructors
Section titled “Constructors”
ChartMark3D()
Section titled “ChartMark3D()”protected ChartMark3D()
ChartMark3D(float, float, float)
Section titled “ChartMark3D(float, float, float)”protected ChartMark3D(float x, float y, float z)Initializes a derived mark at data coordinates (x, y,
z); its 2D ChartMark3D.DataPoint is (x, y).
Parameters
| Name | Type |
|---|---|
x | System.Single |
y | System.Single |
z | System.Single |
ChartMark3D(DataPoint3D)
Section titled “ChartMark3D(DataPoint3D)”protected ChartMark3D(DataPoint3D p)Initializes a derived mark at p, keeping its range ends, series index and identity; its 2D
ChartMark3D.DataPoint is the point’s XY projection.
Parameters
| Name | Type |
|---|---|
p | ChartGuru.DataPoint3D |
Methods
Section titled “Methods”
Offset(float, float, float)
Section titled “Offset(float, float, float)”public ChartMark3D Offset(float x, float y, float z)3D offset in plot coordinates. Swift Charts equivalent: .Offset(x:y:z:).
Parameters
| Name | Type |
|---|---|
x | System.Single |
y | System.Single |
z | System.Single |
Returns
ChartGuru.ChartMark3D
ZKey(object)
Section titled “ZKey(object)”public ChartMark3D ZKey(object key)Tag mark by Z category for legend + chartZSelection.
Parameters
| Name | Type |
|---|---|
key | System.Object |
Returns
ChartGuru.ChartMark3D
SymbolRotation(Quaternion)
Section titled “SymbolRotation(Quaternion)”public ChartMark3D SymbolRotation(Quaternion rotation)Swift Charts equivalent: .SymbolRotation(_:). Rotates the 3D symbol geometry.
Parameters
| Name | Type |
|---|---|
rotation | UnityEngine.Quaternion |
Returns
ChartGuru.ChartMark3D
SymbolRotation(float, float, float)
Section titled “SymbolRotation(float, float, float)”public ChartMark3D SymbolRotation(float xDeg, float yDeg, float zDeg)Set symbol rotation from Euler angles in degrees.
Parameters
| Name | Type |
|---|---|
xDeg | System.Single |
yDeg | System.Single |
zDeg | System.Single |
Returns
ChartGuru.ChartMark3D
Metalness(float)
Section titled “Metalness(float)”public ChartMark3D Metalness(float value)Swift Charts equivalent: .metalness(_:).
Parameters
| Name | Type |
|---|---|
value | System.Single |
Returns
ChartGuru.ChartMark3D
Roughness(float)
Section titled “Roughness(float)”public ChartMark3D Roughness(float value)Swift Charts equivalent: .roughness(_:).
Parameters
| Name | Type |
|---|---|
value | System.Single |
Returns
ChartGuru.ChartMark3D
ColorGradient(bool)
Section titled “ColorGradient(bool)”public ChartMark3D ColorGradient(bool enabled = true)Derives a bottom-to-top gradient from the current palette, color-scale or foreground color. An authored gradient takes priority.
Parameters
| Name | Type |
|---|---|
enabled | System.Boolean |
Returns
ChartGuru.ChartMark3D
BuildMesh(Chart3DMeshContext)
Section titled “BuildMesh(Chart3DMeshContext)”public abstract void BuildMesh(Chart3DMeshContext ctx)Write triangles / instanced draws for this mark into the context registry.
Parameters
| Name | Type |
|---|---|
ctx | ChartGuru.Chart3DMeshContext |
CopyCommon3DStateTo(ChartMark3D)
Section titled “CopyCommon3DStateTo(ChartMark3D)”protected void CopyCommon3DStateTo(ChartMark3D target)Copies the state every 3D mark shares onto target, from colors, series and annotation to the
data point, 3D offset, symbol rotation, Z key, metalness, roughness and color gradient, for a derived mark’s
ChartMark.Clone().
Parameters
| Name | Type |
|---|---|
target | ChartGuru.ChartMark3D |
GetMorphTargets(ChartType, Rect)
Section titled “GetMorphTargets(ChartType, Rect)”public override (Vector2 source, Vector2 target) GetMorphTargets(ChartType targetType, Rect plotArea)Returns the center of plotArea as both source and target, so 2D morph recipes hold 3D marks in
place; 3D hosts play chart type changes as their own transitions from the drawn geometry.
Parameters
| Name | Type |
|---|---|
targetType | ChartGuru.ChartType |
plotArea | UnityEngine.Rect |
Returns
System.ValueTuple{UnityEngine.Vector2,UnityEngine.Vector2}
Properties
Section titled “Properties”
DataPoint3D
Section titled “DataPoint3D”public DataPoint3D DataPoint3D { get; set; }Returns
ChartGuru.DataPoint3D
DataPoint
Section titled “DataPoint”public override DataPoint DataPoint { get; set; }Returns
ChartGuru.DataPoint
Position3D
Section titled “Position3D”public Vector3 Position3D { get; }Project the mark’s anchor point into world-space data coordinates.
Returns
UnityEngine.Vector3
Offset3D
Section titled “Offset3D”public Vector3 Offset3D { get; }Returns
UnityEngine.Vector3
SymbolRotationQuaternion
Section titled “SymbolRotationQuaternion”public Quaternion SymbolRotationQuaternion { get; }Returns
UnityEngine.Quaternion
ZKeyValue
Section titled “ZKeyValue”public object ZKeyValue { get; }Returns
System.Object
MetalnessValue
Section titled “MetalnessValue”public float? MetalnessValue { get; }Returns
System.Nullable{System.Single}
RoughnessValue
Section titled “RoughnessValue”public float? RoughnessValue { get; }Returns
System.Nullable{System.Single}
ColorGradientEnabled
Section titled “ColorGradientEnabled”public bool ColorGradientEnabled { get; }Whether the resolved foreground color gets an implicit gradient when no authored gradient is present.
Returns
System.Boolean