Skip to content

PointMark

ClassChartGuruChartGuru
public class PointMark : ChartMark, IChartMark

Plots an individual data point using a configurable symbol, size, rotation, fill, and stroke.

public PointMark()

public PointMark(float x, float y)

Creates a point symbol at the supplied XY coordinates.

Parameters

Name Type
x System.Single
y System.Single
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

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

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

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

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

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

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

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}

public override IChartMark Clone()

Creates an independent copy of this Point Mark; later configuration changes do not affect the original instance.

Returns

ChartGuru.IChartMark

public override ChartType MarkType { get; }

Returns

ChartGuru.ChartType

public SymbolShape SymbolShape { get; set; }

Returns

ChartGuru.SymbolShape

public float Size { get; set; }

Returns

System.Single

public float SymbolRotationDegrees { get; set; }

Returns

System.Single

public Color StrokeColor { get; set; }

Returns

UnityEngine.Color

public float StrokeWidth { get; set; }

Returns

System.Single

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

public object SymbolKey { get; }

Returns

System.Object

public object SymbolSizeKey { get; }

Returns

System.Object