---
title: "automatic(includesZero:reversed:)"
framework: charts
role: symbol
role_heading: Type Method
path: "charts/scaledomain/automatic(includeszero:reversed:)"
---

# automatic(includesZero:reversed:)

Creates a scale domain configuration that infers the scale domain from data.

## Declaration

```swift
static func automatic(includesZero: Bool? = nil, reversed: Bool? = nil) -> AutomaticScaleDomain
```

## Parameters

- `includesZero`: Whether the scale domain should include zero (only applicable for numerical values).
- `reversed`: Whether the scale domain should be reversed (e.g., 100 … 0).
