AXChartDescriptor
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 contains all the semantic information about an accessible chart.
Declaration
class AXChartDescriptor
Details
Mentioned in
- Representing chart data as an audio graph
Topics
- Creating a chart
- convenience init(title: String?, summary: String?, xAxis: any AXDataAxisDescriptor, yAxis: AXNumericDataAxisDescriptor?, additionalAxes: [any AXDataAxisDescriptor], series: [AXDataSeriesDescriptor])
- convenience init(attributedTitle: NSAttributedString?, summary: String?, xAxis: any AXDataAxisDescriptor, yAxis: AXNumericDataAxisDescriptor?, additionalAxes: [any AXDataAxisDescriptor], series: [AXDataSeriesDescriptor])
- Specifying the chart title
- var title: String?
- var attributedTitle: NSAttributedString?
- Specifying the chart summary
- var summary: String?
- Specifying the axes
- var xAxis: any AXDataAxisDescriptor
- var yAxis: AXNumericDataAxisDescriptor?
- var additionalAxes: [any AXDataAxisDescriptor]
- protocol AXDataAxisDescriptor
- Specifying a series of data points
- var series: [AXDataSeriesDescriptor]
- class AXDataSeriesDescriptor
- Specifying the content layout
- var contentFrame: CGRect
- var contentDirection: AXChartDescriptor.ContentDirection
- enum ContentDirection
Relationships
- NSObject
- CVarArg
- CustomDebugStringConvertible
- CustomStringConvertible
- Equatable
- Hashable
- NSCopying
- NSObjectProtocol
See Also
- Chart representation
- protocol AXChart
AXChart Descriptor
Topics (Grouped)
Creating a chart
- init(title:String?,summary:String?,xAxis: anyAXDataAxisDescriptor,yAxis:AXNumericDataAxisDescriptor?,additionalAxes: [anyAXDataAxisDescriptor],series: [AXDataSeriesDescriptor]) — convenience; Creates a chart descriptor with the specified title, summary, x-axis descriptor, y-axis descriptor, descriptors for additional axes, and array of data series.
- init(attributedTitle:NSAttributedString?,summary:String?,xAxis: anyAXDataAxisDescriptor,yAxis:AXNumericDataAxisDescriptor?,additionalAxes: [anyAXDataAxisDescriptor],series: [AXDataSeriesDescriptor]) — convenience; Creates a chart descriptor with the specified attributed title, summary, x-axis descriptor, y-axis descriptor, descriptors for additional axes, and array of data series.
Specifying the chart title
- title:String? — var; The title of the chart.
- attributedTitle:NSAttributedString? — var; An attributed version of the chart title.
Specifying the chart summary
- summary:String? — var; A description of the key takeaways or features of the chart.
Specifying the axes
- xAxis: anyAXDataAxisDescriptor — var; The axis descriptor for the chart’s x-axis.
- yAxis:AXNumericDataAxisDescriptor? — var; The axis descriptor for the chart’s y-axis.
- additionalAxes: [anyAXDataAxisDescriptor] — var; The descriptors for additional categorical or numerical axes beyond the x-axis and y-axis.
- AXDataAxisDescriptor — protocol; The basic interface for a data axis in a chart.
Specifying a series of data points
- series: [AXDataSeriesDescriptor] — var; The descriptors for each data series in the chart.
- AXDataSeriesDescriptor — class; An object that represents a series of data points.
Specifying the content layout
- contentFrame:CGRect — var; The bounds of the view, in screen coordinates, for visually rendering data values.
- contentDirection:AXChartDescriptor.ContentDirection — var; The direction of the content in the chart.
- ContentDirection — enum; A constant that describes the content direction of the chart.
Inherits From
Conforms To
- CVarArg
- CustomDebugStringConvertible
- CustomStringConvertible
- Equatable
- Hashable
- NSCopying
- NSObjectProtocol
Chart representation
- AXChart — protocol; A protocol that declares the minimum interface necessary for an accessibility element to act as a chart.
Code Examples
class AXChartDescriptor
Source: https://developer.apple.com/documentation/accessibility/axchartdescriptor