AXCategoricalDataAxisDescriptor
Category: Class
Platforms: iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 12.0+, tvOS 15.0+, visionOS 1.0+, watchOS 8.0+
Overview
An object that represents an axis of categorical data.
Declaration
class AXCategoricalDataAxisDescriptor
Details
Topics
- Creating a categorial data axis
- init(title: String, categoryOrder: [String])
- init(attributedTitle: NSAttributedString, categoryOrder: [String])
- Configuring the order of categories
- var categoryOrder: [String]
Relationships
- NSObject
- AXDataAxisDescriptor
- CVarArg
- CustomDebugStringConvertible
- CustomStringConvertible
- Equatable
- Hashable
- NSCopying
- NSObjectProtocol
See Also
- Axis representation
-
class AXNumericDataAxisDescriptor
-
Accessibility
- AXCategoricalDataAxisDescriptor
AXCategorical Data Axis Descriptor
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 (Grouped)
Creating a categorial data axis
- inittitle:String,categoryOrder: [String]) — (; Creates a categorical data axis with the specified title and an array of categories in the specified order.
- initattributedTitle:NSAttributedString,categoryOrder: [String]) — (; 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: [String] — var; A list of every category value for the axis in the order they appear visually in the graph or legend.
Inherits From
Conforms To
- AXDataAxisDescriptor
- CVarArg
- CustomDebugStringConvertible
- CustomStringConvertible
- Equatable
- Hashable
- NSCopying
- NSObjectProtocol
Axis representation
- AXDataAxisDescriptor — protocol; The basic interface for a data axis in a chart.
- AXNumericDataAxisDescriptor — class; An object that represents an axis of numerical data.
Code Examples
class AXCategoricalDataAxisDescriptor
Source: https://developer.apple.com/documentation/accessibility/axcategoricaldataaxisdescriptor