offset(xStart:xEnd:yStart:yEnd:)
Applies an offset to the chart content.
Declaration
nonisolated func offset(xStart: CGFloat = 0, xEnd: CGFloat = 0, yStart: CGFloat = 0, yEnd: CGFloat = 0) -> some ChartContent
Parameters
- xStart:
The starting horizontal offset in screen coordinates.
- xEnd:
The ending horizontal offset in screen coordinates.
- yStart:
The starting vertical offset in screen coordinates.
- yEnd:
The ending vertical offset in screen coordinates.
Discussion
The xStart, xEnd, yStart, and yEnd offset values apply only to marks that have such properties, like bar marks and line segment marks.