Contents

offset(x:yStart:yEnd:)

Applies an offset to the chart content.

Declaration

nonisolated func offset(x: CGFloat = 0, yStart: CGFloat = 0, yEnd: CGFloat = 0) -> some ChartContent

Parameters

  • x:

    The horizontal offset in screen coordinates.

  • yStart:

    The starting vertical offset in screen coordinates.

  • yEnd:

    The ending vertical offset in screen coordinates.

Discussion

The yStart and yEnd offset values apply only to marks that have such properties, like bar marks and line segment marks.

See Also

Positioning marks