---
title: "automatic(desiredCount:roundLowerBound:roundUpperBound:)"
framework: charts
role: symbol
role_heading: Type Method
path: "charts/axismarkvalues/automatic(desiredcount:roundlowerbound:roundupperbound:)"
---

# automatic(desiredCount:roundLowerBound:roundUpperBound:)

Automatically determines the values for the markers, approximating the target number of values.

## Declaration

```swift
static func automatic(desiredCount: Int? = nil, roundLowerBound: Bool? = nil, roundUpperBound: Bool? = nil) -> AxisMarkValues
```

## Mentioned in

Customizing axes in Swift Charts
