---
title: "offset(x:yStart:yEnd:)"
framework: charts
role: symbol
role_heading: Instance Method
path: "charts/chartcontent/offset(x:ystart:yend:)"
---

# offset(x:yStart:yEnd:)

Applies an offset to the chart content.

## Declaration

```swift
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

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

- [offset(_:)](charts/chartcontent/offset(_:).md)
- [offset(x:y:)](charts/chartcontent/offset(x:y:).md)
- [offset(xStart:xEnd:y:)](charts/chartcontent/offset(xstart:xend:y:).md)
- [offset(xStart:xEnd:yStart:yEnd:)](charts/chartcontent/offset(xstart:xend:ystart:yend:).md)
- [alignsMarkStylesWithPlotArea(_:)](charts/chartcontent/alignsmarkstyleswithplotarea(_:).md)
