Skip to content

AreaMark

ClassChartGuruChartGuru
public class AreaMark : ChartMark, IChartMark

Encodes a filled region between a value series and a baseline or second boundary, with configurable interpolation, line treatment, and stacking.

public AreaMark()

public AreaMark(float x, float y)

Creates an area sample from a zero baseline to the supplied Y value at X.

Parameters

NameType
xSystem.Single
ySystem.Single
public AreaMark(DataPoint point)

Creates an area sample from an existing point, preserving range endpoints and grouping metadata.

Parameters

NameType
pointChartGuru.DataPoint

AreaMark(PlottableValueRef, PlottableValueRef, int)

Section titled “AreaMark(PlottableValueRef, PlottableValueRef, int)”
public AreaMark(PlottableValueRef x, PlottableValueRef y, int index = 0)

Creates an area sample from semantic X/Y bindings and carries their axis and category metadata into the mark.

Parameters

NameType
xChartGuru.PlottableValueRef
yChartGuru.PlottableValueRef
indexSystem.Int32
public AreaMark(float x, float yStart, float yEnd)

Creates a range AreaMark spanning from yStart to yEnd at the given x position. Swift Charts equivalent: AreaMark(x: .Value(“X”, x), yStart: .Value(“Start”, yStart), yEnd: .Value(“End”, yEnd))

Parameters

NameTypeDescription
xSystem.SingleThe x position
yStartSystem.SingleThe lower Y value
yEndSystem.SingleThe upper Y value

AreaMark(PlottableValueRef, PlottableValueRef, PlottableValueRef, int)

Section titled “AreaMark(PlottableValueRef, PlottableValueRef, PlottableValueRef, int)”
public AreaMark(PlottableValueRef x, PlottableValueRef yStart, PlottableValueRef yEnd, int index = 0)

Creates a ranged area sample bounded by semantic lower and upper Y values and records the lower value as its baseline.

Parameters

NameType
xChartGuru.PlottableValueRef
yStartChartGuru.PlottableValueRef
yEndChartGuru.PlottableValueRef
indexSystem.Int32

public AreaMark InterpolationMethod(InterpolationMethod method)

Sets the interpolation method for this area. Swift Charts equivalent: .InterpolationMethod(.catmullRom)

Parameters

NameType
methodChartGuru.InterpolationMethod

Returns

ChartGuru.AreaMark

public AreaMark Stacking(MarkStackingMethod method)

Sets the stacking method for this area; areas stack by default and range areas never stack. Swift Charts equivalent: AreaMark(…, stacking: .center)

Parameters

NameType
methodChartGuru.MarkStackingMethod

Returns

ChartGuru.AreaMark

public AreaMark LineStyle(float lineWidth)

Sets the line width for the area outline. Swift Charts equivalent: .LineStyle(StrokeStyle(lineWidth:))

Parameters

NameType
lineWidthSystem.Single

Returns

ChartGuru.AreaMark

public AreaMark LineStyle(StrokeStyle style)

Sets the outline stroke style for this area. Swift Charts equivalent: .LineStyle(StrokeStyle(lineWidth:dash:))

Parameters

NameType
styleChartGuru.StrokeStyle

Returns

ChartGuru.AreaMark

public AreaMark LineStyle(PlottableValueRef value)

Encodes a value into the line style scale for automatic outline styling. Swift Charts equivalent: .LineStyle(by: .Value(“Category”, category))

Parameters

NameType
valueChartGuru.PlottableValueRef

Returns

ChartGuru.AreaMark

public AreaMark Symbol(SymbolShape shape)

Enables point symbols on the area boundary line. Swift Charts equivalent: .Symbol(.circle)

Parameters

NameType
shapeChartGuru.SymbolShape

Returns

ChartGuru.AreaMark

public AreaMark Symbol(SymbolShape shape, float size)

Enables point symbols with a specific shape and size on the area boundary line.

Parameters

NameType
shapeChartGuru.SymbolShape
sizeSystem.Single

Returns

ChartGuru.AreaMark

public AreaMark Symbol(SymbolStyle style)

Enables stroked-border point symbols on the area boundary line. Swift Charts equivalent: .Symbol(.circle.StrokeBorder(lineWidth: 2)).

Parameters

NameType
styleChartGuru.SymbolStyle

Returns

ChartGuru.AreaMark

public AreaMark Symbol(PlottableValueRef value)

Encodes a value into the symbol scale for automatic symbol styling. Swift Charts equivalent: .Symbol(by: .Value(“Category”, category))

Parameters

NameType
valueChartGuru.PlottableValueRef

Returns

ChartGuru.AreaMark

public AreaMark SymbolSize(float size)

Sets the point size for area symbols.

Parameters

NameType
sizeSystem.Single

Returns

ChartGuru.AreaMark

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

NameType
targetTypeChartGuru.ChartType
plotAreaUnityEngine.Rect

Returns

System.ValueTuple{UnityEngine.Vector2,UnityEngine.Vector2}

public override IChartMark Clone()

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

Returns

ChartGuru.IChartMark

public override ChartType MarkType { get; }

Returns

ChartGuru.ChartType

public InterpolationMethod Interpolation { get; set; }

Returns

ChartGuru.InterpolationMethod

public float Baseline { get; set; }

Returns

System.Single

public bool ShowLine { get; set; }

Returns

System.Boolean

public float LineWidth { get; set; }

Returns

System.Single

public Color LineColor { get; set; }

Returns

UnityEngine.Color

public bool UseGradientForLine { get; set; }

Returns

System.Boolean

public float[] Dash { get; set; }

Returns

System.Single[]

public float DashPhase { get; set; }

Returns

System.Single

public object LineStyleKey { get; }

Returns

System.Object

public MarkStackingMethod StackingMethod { get; set; }

How areas of different series combine at the same X, Swift Charts’ stacking:. Areas stack by default (MarkStackingMethod.Standard), as AreaMark(x:y:) does; pass MarkStackingMethod.Unstacked to overlap them. A range area, AreaMark(x:yStart:yEnd:), spans its own start and end and never stacks.

Returns

ChartGuru.MarkStackingMethod

public bool ShowGradient { get; set; }

Returns

System.Boolean

public Color GradientTopColor { get; set; }

Returns

UnityEngine.Color

public bool ShowPoints { get; set; }

Returns

System.Boolean

public SymbolShape PointSymbol { get; set; }

Returns

ChartGuru.SymbolShape

public float PointSize { get; set; }

Returns

System.Single

public bool PointStroked { get; set; }

True when point symbols render as a stroked outline rather than filled.

Returns

System.Boolean

public float PointStrokeWidth { get; set; }

Stroke width in pixels for stroked point symbols.

Returns

System.Single

public object SymbolKey { get; }

Returns

System.Object

public object SymbolSizeKey { get; }

Returns

System.Object