Skip to content

AXChart

Category: Protocol

Platforms: iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 12.0+, tvOS 15.0+, visionOS 1.0+, watchOS 8.0+

Overview

A protocol that declares the minimum interface necessary for an accessibility element to act as a chart.

Declaration

protocol AXChart : NSObjectProtocol

Details

Mentioned in

  • Representing chart data as an audio graph

Topics

  • Supporting accessibility
  • var accessibilityChartDescriptor: AXChartDescriptor?
  • class AXChartDescriptor

Relationships

  • NSObjectProtocol

See Also

  • Chart representation

Overview

Use this protocol when you want to create an accessible representation of a chart — a view that displays a graphical representation of a data set — for VoiceOver to play as an audio graph.

Adopt the AXChart protocol on your chart’s view model, and set the accessibilityChartDescriptor property to an AXChartDescriptor that contains all the semantic information you need to represent your chart through an audio interface, like the chart’s title, axes, data points, and a summary of the chart’s key takeaways.

Topics (Grouped)

Supporting accessibility

Inherits From

Chart representation

  • AXChartDescriptor — class; An object that contains all the semantic information about an accessible chart.

Code Examples

protocol AXChart : NSObjectProtocol

Source: https://developer.apple.com/documentation/accessibility/axchart