<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Charts",
  "identifier" : "/documentation/Charts/ChartBinRange",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift Charts"
    ],
    "preciseIdentifier" : "s:6Charts13ChartBinRangeV"
  },
  "title" : "ChartBinRange"
}
-->

# ChartBinRange

The range of data that a single bin of a chart represents.

```
struct ChartBinRange<Bound> where Bound : Comparable
```

## Overview

All bins except the last for a particular chart represent an
open range, meaning that the range doesn’t include the upper bound. The
last range of the last bin is closed, so that it does include the upper
bound. The system keeps track of the open or closed state of a particular
range.

## Relationships

### Conforms To

[`RangeExpression`](/documentation/Swift/RangeExpression)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)