---
title: "init(thresholds:)"
framework: charts
role: symbol
role_heading: Initializer
path: "charts/datebins/init(thresholds:)"
---

# init(thresholds:)

Creates N-1 bins with the given N thresholds.

## Declaration

```swift
nonisolated init(thresholds: [Date])
```

## Parameters

- `thresholds`: The threshold values that surround the bins.

## Return Value

Return Value The bins.
