---
title: "offset(xStart:xEnd:y:)"
framework: charts
role: symbol
role_heading: Instance Method
path: "charts/chartcontent/offset(xstart:xend:y:)"
---

# offset(xStart:xEnd:y:)

Applies an offset to the chart content.

## Declaration

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

Discussion The xStart and xEnd 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(x:yStart:yEnd:)](charts/chartcontent/offset(x:ystart:yend:).md)
- [offset(xStart:xEnd:yStart:yEnd:)](charts/chartcontent/offset(xstart:xend:ystart:yend:).md)
- [alignsMarkStylesWithPlotArea(_:)](charts/chartcontent/alignsmarkstyleswithplotarea(_:).md)
