<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accessibility",
  "identifier" : "/documentation/Accessibility/AXCategoricalDataAxisDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Accessibility"
    ],
    "preciseIdentifier" : "c:objc(cs)AXCategoricalDataAxisDescriptor"
  },
  "title" : "AXCategoricalDataAxisDescriptor"
}
-->

# AXCategoricalDataAxisDescriptor

An object that represents an axis of categorical data.

```
class AXCategoricalDataAxisDescriptor
```

## Overview

A categorical data axis divides information into groups, or categories. For example,
a categorical axis may represent blood type data divided into the possible categories
*AB*, *A*, *B*, and *O*.

## Topics

### Creating a categorical data axis

[`-  initWithTitle:categoryOrder:`](/documentation/Accessibility/AXCategoricalDataAxisDescriptor/init(title:categoryOrder:))

Creates a categorical data axis with the specified title and an array of categories
in the specified order.

[`-  initWithAttributedTitle:categoryOrder:`](/documentation/Accessibility/AXCategoricalDataAxisDescriptor/init(attributedTitle:categoryOrder:))

Creates a categorical data axis with the specified attributed title and an array
of categories in the specified order.

### Configuring the order of categories

[`categoryOrder`](/documentation/Accessibility/AXCategoricalDataAxisDescriptor/categoryOrder)

A list of every category value for the axis in the order they appear visually in
the graph or legend.

## Relationships

### Conforms To

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

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

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

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

[`AXDataAxisDescriptor`](/documentation/Accessibility/AXDataAxisDescriptor)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)