AXNumericDataAxisDescriptor
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 numerical data.
Declaration
class AXNumericDataAxisDescriptor
Details
Topics
- Creating a numeric data axis
- convenience init(title: String, range: ClosedRange
, gridlinePositions: [Double], valueDescriptionProvider: (Double) -> String) - convenience init(attributedTitle: NSAttributedString, range: ClosedRange
, gridlinePositions: [Double], valueDescriptionProvider: (Double) -> String) - Specifying the value description
- var valueDescriptionProvider: (Double) -> String
- Configuring the axis scale
- var scaleType: AXNumericDataAxisDescriptor.ScaleType
- enum ScaleType
- Configuring the axis range
- var range: ClosedRange
- Configuring the gridlines
- var gridlinePositions: [Double]
Relationships
- NSObject
- AXDataAxisDescriptor
- CVarArg
- CustomDebugStringConvertible
- CustomStringConvertible
- Equatable
- Hashable
- NSCopying
- NSObjectProtocol
See Also
- Axis representation
-
class AXCategoricalDataAxisDescriptor
-
Accessibility
- AXNumericDataAxisDescriptor
AXNumeric Data Axis Descriptor
Topics (Grouped)
Creating a numeric data axis
- init(title:String,range:ClosedRange
,gridlinePositions: [Double],valueDescriptionProvider: (Double) ->String) — convenience; Creates a numeric data axis with the specified title, range, gridline positions, and value description provider closure. - init(attributedTitle:NSAttributedString,range:ClosedRange
,gridlinePositions: [Double],valueDescriptionProvider: (Double) ->String) — convenience; Creates a numeric data axis with the specified attributed title, range, gridline positions, and value description provider closure.
Specifying the value description
- valueDescriptionProvider: (Double) ->String — var; A description to speak for a particular data value on the axis.
Configuring the axis scale
- scaleType:AXNumericDataAxisDescriptor.ScaleType — var; The scale for the axis.
- ScaleType — enum; Constants that describe the scale of a numeric axis.
Configuring the axis range
- range:ClosedRange
— var; A range that defines the minimum and maximum displayable values for the axis.
Configuring the gridlines
- gridlinePositions: [Double] — var; The positions of the gridlines along the axis.
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.
- AXCategoricalDataAxisDescriptor — class; An object that represents an axis of categorical data.
Code Examples
class AXNumericDataAxisDescriptor
Source: https://developer.apple.com/documentation/accessibility/axnumericdataaxisdescriptor