PlotDimensionRange
public readonly struct PlotDimensionRangePlot-dimension scale range padding. Swift Charts equivalent:
.plotDimension(startPadding:endPadding:).
Pads (or — when negative — extends) the value/band axis at the
start and end of the plot rectangle. Sample 28 uses
.ChartYScale(range: .plotDimension(endPadding: -8)) to push
the lone band slot 8 px past the plot edge.
Fields
Section titled “Fields”
StartPadding
Section titled “StartPadding”public readonly float StartPaddingSigned pixel padding at the start of the axis (lower-value end / leading band). Negative values extend marks past the plot edge.
Returns
System.Single — No return description is available.
EndPadding
Section titled “EndPadding”public readonly float EndPaddingSigned pixel padding at the end of the axis (upper-value end / trailing band). Negative values extend marks past the plot edge.
Returns
System.Single — No return description is available.
Constructors
Section titled “Constructors”
PlotDimensionRange(float, float)
Section titled “PlotDimensionRange(float, float)”public PlotDimensionRange(float startPadding, float endPadding)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
startPadding |
System.Single | |
endPadding |
System.Single |
Methods
Section titled “Methods”
PlotDimension(float, float)
Section titled “PlotDimension(float, float)”public static PlotDimensionRange PlotDimension(float startPadding = 0, float endPadding = 0)Swift Charts equivalent: .plotDimension(startPadding:endPadding:).
Either argument may be negative to extend marks past the plot edge.
Parameters
| Name | Type | Description |
|---|---|---|
startPadding |
System.Single | |
endPadding |
System.Single |
Returns
ChartGuru.PlotDimensionRange — No return description is available.