AXDataPoint
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 a single data point in a chart.
Declaration
class AXDataPoint
Details
Topics
- Creating a data point
- convenience init(x: String, y: Double?, additionalValues: [AXDataPoint.Value], label: String?)
- convenience init(x: Double, y: Double?, additionalValues: [AXDataPoint.Value], label: String?)
- Specifying the data value
- var xValue: AXDataPointValue
- var yValue: AXDataPointValue?
- class AXDataPointValue
- enum Value
- Specifying the label
- var label: String?
- var attributedLabel: NSAttributedString?
Relationships
- NSObject
- CVarArg
- CustomDebugStringConvertible
- CustomStringConvertible
- Equatable
- Hashable
- NSCopying
- NSObjectProtocol
See Also
- Data representation
- class AXDataSeriesDescriptor
AXData Point
Topics (Grouped)
Creating a data point
- init(x:String,y:Double?,additionalValues: [AXDataPoint.Value],label:String?) — convenience; Creates a data point with the specified x-value, y-value, additional values, and label.
- init(x:Double,y:Double?,additionalValues: [AXDataPoint.Value],label:String?) — convenience; Creates a data point with the specified x-value, y-value, additional values, and label.
Specifying the data value
- xValue:AXDataPointValue — var; The value of the x-axis for the data point.
- yValue:AXDataPointValue? — var; The value of the y-axis for the data point.
- AXDataPointValue — class; A single data value.
- Value — enum; Constants that describe types of data values.
Specifying the label
- label:String? — var; The label for the data point.
- attributedLabel:NSAttributedString? — var; An attributed version of the label for the data point.
Inherits From
Conforms To
- CVarArg
- CustomDebugStringConvertible
- CustomStringConvertible
- Equatable
- Hashable
- NSCopying
- NSObjectProtocol
Data representation
- AXDataSeriesDescriptor — class; An object that represents a series of data points.
Code Examples
class AXDataPoint
Source: https://developer.apple.com/documentation/accessibility/axdatapoint