PointMark
public class PointMark : ChartMark, IChartMarkPlots an individual data point using a configurable symbol, size, rotation, fill, and stroke.
Constructors
Section titled “Constructors”
PointMark()
Section titled “PointMark()”public PointMark()
PointMark(float, float)
Section titled “PointMark(float, float)”public PointMark(float x, float y)Creates a point symbol at the supplied XY coordinates.
Parameters
| Name | Type |
|---|---|
x |
System.Single |
y |
System.Single |
PointMark(DataPoint)
Section titled “PointMark(DataPoint)”public PointMark(DataPoint point)Creates a point symbol from an existing point, preserving its identity and grouping metadata.
Parameters
| Name | Type |
|---|---|
point |
ChartGuru.DataPoint |
PointMark(PlottableValueRef, PlottableValueRef, int)
Section titled “PointMark(PlottableValueRef, PlottableValueRef, int)”public PointMark(PlottableValueRef x, PlottableValueRef y, int index = 0)Creates a point symbol from semantic X/Y bindings and carries their axis and category metadata into the mark.
Parameters
| Name | Type |
|---|---|
x |
ChartGuru.PlottableValueRef |
y |
ChartGuru.PlottableValueRef |
index |
System.Int32 |
Methods
Section titled “Methods”
Symbol(SymbolShape)
Section titled “Symbol(SymbolShape)”public PointMark Symbol(SymbolShape shape)Sets the symbol shape for this point. Swift Charts equivalent: .Symbol(.circle)
Parameters
| Name | Type |
|---|---|
shape |
ChartGuru.SymbolShape |
Returns
ChartGuru.PointMark
Symbol(SymbolStyle)
Section titled “Symbol(SymbolStyle)”public PointMark Symbol(SymbolStyle style)Sets the symbol style for this point, allowing stroked-border rendering.
Swift Charts equivalent: .Symbol(.circle.StrokeBorder(lineWidth: 2)).
Parameters
| Name | Type |
|---|---|
style |
ChartGuru.SymbolStyle |
Returns
ChartGuru.PointMark
Symbol(PlottableValueRef)
Section titled “Symbol(PlottableValueRef)”public PointMark Symbol(PlottableValueRef value)Encodes a value into the symbol scale for automatic symbol assignment. Swift Charts equivalent: .Symbol(by: .Value(“Category”, category))
Parameters
| Name | Type |
|---|---|
value |
ChartGuru.PlottableValueRef |
Returns
ChartGuru.PointMark
SymbolSize(float)
Section titled “SymbolSize(float)”public PointMark SymbolSize(float size)Sets the symbol size for this point. Swift Charts equivalent: .SymbolSize(value)
Parameters
| Name | Type |
|---|---|
size |
System.Single |
Returns
ChartGuru.PointMark
SymbolSize(PlottableValueRef)
Section titled “SymbolSize(PlottableValueRef)”public PointMark SymbolSize(PlottableValueRef value)Encodes a value into the symbol size scale for automatic sizing. Swift Charts equivalent: .SymbolSize(by: .Value(“Size”, size))
Parameters
| Name | Type |
|---|---|
value |
ChartGuru.PlottableValueRef |
Returns
ChartGuru.PointMark
SymbolRotation(float)
Section titled “SymbolRotation(float)”public PointMark SymbolRotation(float degrees)Rotates the rendered 2D symbol in degrees.
Swift Charts equivalent: .SymbolRotation(…).
Parameters
| Name | Type |
|---|---|
degrees |
System.Single |
Returns
ChartGuru.PointMark
GetMorphTargets(ChartType, Rect)
Section titled “GetMorphTargets(ChartType, Rect)”public override (Vector2 source, Vector2 target) GetMorphTargets(ChartType targetType, Rect plotArea)Projects this mark into plot-space geometry that the morph renderer can interpolate toward the requested chart type.
Parameters
| Name | Type |
|---|---|
targetType |
ChartGuru.ChartType |
plotArea |
UnityEngine.Rect |
Returns
System.ValueTuple{UnityEngine.Vector2,UnityEngine.Vector2}
Clone()
Section titled “Clone()”public override IChartMark Clone()Creates an independent copy of this Point Mark; later configuration changes do not affect the original instance.
Returns
ChartGuru.IChartMark
Properties
Section titled “Properties”
MarkType
Section titled “MarkType”public override ChartType MarkType { get; }Returns
ChartGuru.ChartType
SymbolShape
Section titled “SymbolShape”public SymbolShape SymbolShape { get; set; }Returns
ChartGuru.SymbolShape
public float Size { get; set; }Returns
System.Single
SymbolRotationDegrees
Section titled “SymbolRotationDegrees”public float SymbolRotationDegrees { get; set; }Returns
System.Single
StrokeColor
Section titled “StrokeColor”public Color StrokeColor { get; set; }Returns
UnityEngine.Color
StrokeWidth
Section titled “StrokeWidth”public float StrokeWidth { get; set; }Returns
System.Single
Stroked
Section titled “Stroked”public bool Stroked { get; set; }True when the symbol renders as a stroked outline rather than filled.
Swift Charts equivalent: .Symbol(.circle.StrokeBorder(lineWidth: 2)).
Returns
System.Boolean
SymbolKey
Section titled “SymbolKey”public object SymbolKey { get; }Returns
System.Object
SymbolSizeKey
Section titled “SymbolSizeKey”public object SymbolSizeKey { get; }Returns
System.Object