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