AreaMark
public class AreaMark : ChartMark, IChartMarkEncodes a filled region between a value series and a baseline or second boundary, with configurable interpolation, line treatment, and stacking.
Constructors
Section titled “Constructors”
AreaMark()
Section titled “AreaMark()”public AreaMark()
AreaMark(float, float)
Section titled “AreaMark(float, float)”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 |
AreaMark(DataPoint)
Section titled “AreaMark(DataPoint)”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 |
AreaMark(float, float, float)
Section titled “AreaMark(float, float, float)”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 |
Methods
Section titled “Methods”
InterpolationMethod(InterpolationMethod)
Section titled “InterpolationMethod(InterpolationMethod)”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
Stacking(MarkStackingMethod)
Section titled “Stacking(MarkStackingMethod)”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
LineStyle(float)
Section titled “LineStyle(float)”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
LineStyle(StrokeStyle)
Section titled “LineStyle(StrokeStyle)”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
LineStyle(PlottableValueRef)
Section titled “LineStyle(PlottableValueRef)”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
Symbol(SymbolShape)
Section titled “Symbol(SymbolShape)”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
Symbol(SymbolShape, float)
Section titled “Symbol(SymbolShape, float)”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
Symbol(SymbolStyle)
Section titled “Symbol(SymbolStyle)”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
Symbol(PlottableValueRef)
Section titled “Symbol(PlottableValueRef)”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
SymbolSize(float)
Section titled “SymbolSize(float)”public AreaMark SymbolSize(float size)Sets the point size for area symbols.
Parameters
| Name | Type |
|---|---|
size |
System.Single |
Returns
ChartGuru.AreaMark
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 Area 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
Interpolation
Section titled “Interpolation”public InterpolationMethod Interpolation { get; set; }Returns
ChartGuru.InterpolationMethod
Baseline
Section titled “Baseline”public float Baseline { get; set; }Returns
System.Single
ShowLine
Section titled “ShowLine”public bool ShowLine { get; set; }Returns
System.Boolean
LineWidth
Section titled “LineWidth”public float LineWidth { get; set; }Returns
System.Single
LineColor
Section titled “LineColor”public Color LineColor { get; set; }Returns
UnityEngine.Color
UseGradientForLine
Section titled “UseGradientForLine”public bool UseGradientForLine { get; set; }Returns
System.Boolean
public float[] Dash { get; set; }Returns
System.Single[]
DashPhase
Section titled “DashPhase”public float DashPhase { get; set; }Returns
System.Single
LineStyleKey
Section titled “LineStyleKey”public object LineStyleKey { get; }Returns
System.Object
StackingMethod
Section titled “StackingMethod”public MarkStackingMethod StackingMethod { get; set; }Returns
ChartGuru.MarkStackingMethod
ShowGradient
Section titled “ShowGradient”public bool ShowGradient { get; set; }Returns
System.Boolean
GradientTopColor
Section titled “GradientTopColor”public Color GradientTopColor { get; set; }Returns
UnityEngine.Color
ShowPoints
Section titled “ShowPoints”public bool ShowPoints { get; set; }Returns
System.Boolean
PointSymbol
Section titled “PointSymbol”public SymbolShape PointSymbol { get; set; }Returns
ChartGuru.SymbolShape
PointSize
Section titled “PointSize”public float PointSize { get; set; }Returns
System.Single
PointStroked
Section titled “PointStroked”public bool PointStroked { get; set; }True when point symbols render as a stroked outline rather than filled.
Returns
System.Boolean
PointStrokeWidth
Section titled “PointStrokeWidth”public float PointStrokeWidth { get; set; }Stroke width in pixels for stroked point symbols.
Returns
System.Single
SymbolKey
Section titled “SymbolKey”public object SymbolKey { get; }Returns
System.Object
SymbolSizeKey
Section titled “SymbolSizeKey”public object SymbolSizeKey { get; }Returns
System.Object