init(title:range:gridlinePositions:valueDescriptionProvider:)
Category: Initializer
Platforms: iOS 15.0+, iPadOS 15.0+, Mac Catalyst 15.0+, macOS 12.0+, tvOS 15.0+, visionOS 1.0+, watchOS 8.0+
Overview
Creates a numeric data axis with the specified title, range, gridline positions, and value description provider closure.
Declaration
convenience init(
title: String,
range: ClosedRange<Double>,
gridlinePositions: [Double],
valueDescriptionProvider: @escaping (Double) -> String
)
Details
See Also
- Creating a numeric data axis
-
convenience init(attributedTitle: NSAttributedString, range: ClosedRange
, gridlinePositions: [Double], valueDescriptionProvider: (Double) -> String) -
Accessibility
- AXNumericDataAxisDescriptor
- init(title:range:gridlinePositions:valueDescriptionProvider:)
init(title: range: gridline Positions: value Description Provider:)
Topics (Grouped)
Creating a numeric data axis
- 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.
Code Examples
convenience init(
title: String,
range: ClosedRange<Double>,
gridlinePositions: [Double],
valueDescriptionProvider: @escaping (Double) -> String
)