Contents

offset(x:y:)

Applies a vertical and horizontal offset to the chart content.

Declaration

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

Parameters

  • x:

    The horizontal offset in screen coordinates.

  • y:

    The vertical offset in screen coordinates.

See Also

Positioning marks