---
title: "init(x:y:)"
framework: charts
role: symbol
role_heading: Initializer
path: "charts/annotationoverflowresolution/init(x:y:)"
---

# init(x:y:)

Creates an AnnotationOverflowResolution with strategies for the X and Y dimensions.

## Declaration

```swift
nonisolated init(x: AnnotationOverflowResolution.Strategy = .automatic, y: AnnotationOverflowResolution.Strategy = .automatic)
```

## Discussion

Discussion Parameters: x: The strategy to resolve X overflow. y: The strategy to resolve Y overflow.
