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

Name Type
x System.Single
y System.Single
public AreaMark(DataPoint point)

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

Parameters

Name Type
point ChartGuru.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

Name Type
x ChartGuru.PlottableValueRef
y ChartGuru.PlottableValueRef
index System.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

Name Type Description
x System.Single The x position
yStart System.Single The lower Y value
yEnd System.Single The 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

Name Type
x ChartGuru.PlottableValueRef
yStart ChartGuru.PlottableValueRef
yEnd ChartGuru.PlottableValueRef
index System.Int32

public AreaMark InterpolationMethod(InterpolationMethod method)

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

Parameters

Name Type
method ChartGuru.InterpolationMethod

Returns

ChartGuru.AreaMark

public AreaMark Stacking(MarkStackingMethod method)

Sets the stacking method for this area. Swift Charts equivalent: AreaMark(…, stacking: .center)

Parameters

Name Type
method ChartGuru.MarkStackingMethod

Returns

ChartGuru.AreaMark

public AreaMark LineStyle(float lineWidth)

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

Parameters

Name Type
lineWidth System.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

Name Type
style ChartGuru.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

Name Type
value ChartGuru.PlottableValueRef

Returns

ChartGuru.AreaMark

public AreaMark Symbol(SymbolShape shape)

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

Parameters

Name Type
shape ChartGuru.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

Name Type
shape ChartGuru.SymbolShape
size System.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

Name Type
style ChartGuru.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

Name Type
value ChartGuru.PlottableValueRef

Returns

ChartGuru.AreaMark

public AreaMark SymbolSize(float size)

Sets the point size for area symbols.

Parameters

Name Type
size System.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

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 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; }

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