One Logo Pool Ball
App Services · IOS API REFERENCE

Charts

Construct and customize charts on every Apple platform.

179 types

276 callable entries

374 skipped

42% entry coverage

Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.

Types

AnnotationContext

struct · iOS 16.0+

AnnotationOverflowResolution

struct · iOS 17.0+

AnnotationOverflowResolution.Boundary

struct · iOS 17.0+

AnnotationOverflowResolution.Strategy

struct · iOS 17.0+

AnnotationPosition

struct · iOS 16.0+

AnyAxisContent

struct · iOS 16.0+

AnyAxisMark

struct · iOS 16.0+

AnyChartContent

struct · iOS 16.0+

AnyChartContent.Body

typealias · iOS 16.0+

AnyChartSymbolShape

struct · iOS 16.0+

AnyChartSymbolShape.AnimatableData

typealias · iOS 16.0+

AnyChartSymbolShape.Body

typealias · iOS 16.0+

AnyGradient.VisualValue

typealias · iOS 16.0+

AreaMark

struct · iOS 16.0+

AreaMark.Body

typealias · iOS 16.0+

AreaPlot

struct · iOS 18.0+

AreaPlot.Body

typealias · iOS 18.0+

AreaPlot.DataElement

typealias · iOS 18.0+

Array.VisualValue

typealias · iOS 16.0+

ArraySlice.VisualValue

typealias · iOS 16.0+

AutomaticScaleDomain

struct · iOS 16.0+

AxisContent

protocol · iOS 16.0+

AxisContentBuilder

struct · iOS 16.0+

AxisGridLine

struct · iOS 16.0+

AxisMark

protocol · iOS 16.0+

AxisMarkBuilder

struct · iOS 16.0+

AxisMarkPosition

struct · iOS 16.0+

AxisMarkPreset

struct · iOS 16.0+

AxisMarks

struct · iOS 16.0+

AxisMarkValues

struct · iOS 16.0+

AxisTick

struct · iOS 16.0+

AxisTick.Length

struct · iOS 16.0+

AxisValue

struct · iOS 16.0+

AxisValueLabel

struct · iOS 16.0+

AxisValueLabelCollisionResolution

struct · iOS 16.0+

AxisValueLabelOrientation

struct · iOS 16.0+

BarMark

struct · iOS 16.0+

BarMark.Body

typealias · iOS 16.0+

BarPlot

struct · iOS 18.0+

BarPlot.Body

typealias · iOS 18.0+

BarPlot.DataElement

typealias · iOS 18.0+

BasicChart3DSurfaceStyle

struct · iOS 26.0+

BasicChart3DSymbolShape

struct · iOS 26.0+

BasicChartSymbolShape

struct · iOS 16.0+

BasicChartSymbolShape.AnimatableData

typealias · iOS 16.0+

BasicChartSymbolShape.Body

typealias · iOS 16.0+

BuilderConditional

struct · iOS 16.0+

BuilderConditional.Body

typealias · iOS 16.0+

Chart

struct · iOS 16.0+

Chart.Body

typealias · iOS 16.0+

Chart3D

struct · iOS 26.0+

Chart3D.Body

typealias · iOS 26.0+

Chart3DCameraProjection

struct · iOS 26.0+

Chart3DContent

protocol · iOS 26.0+

Chart3DContentBuilder

struct · iOS 26.0+

Chart3DPose

struct · iOS 26.0+

Chart3DSurfaceStyle

protocol · iOS 26.0+

Chart3DSymbolShape

protocol · iOS 26.0+

ChartAxisContent

struct · iOS 17.0+

ChartAxisContent.Body

typealias · iOS 17.0+

ChartBinRange

struct · iOS 16.0+

ChartContent

protocol · iOS 16.0+

ChartContentBuilder

struct · iOS 16.0+

ChartPlotContent

struct · iOS 16.0+

ChartPlotContent.Body

typealias · iOS 16.0+

ChartProxy

struct · iOS 16.0+

ChartScrollTargetBehavior

protocol · iOS 17.0+

ChartScrollTargetBehaviorContext

struct · iOS 17.0+

ChartSymbolShape

protocol · iOS 16.0+

ClosedRange.VisualValue

typealias · iOS 16.0+

Date.PrimitivePlottable

typealias · iOS 16.0+

DateBins

struct · iOS 16.0+

DateBins.Element

typealias · iOS 16.0+

DateBins.Index

typealias · iOS 16.0+

DateBins.Indices

typealias · iOS 16.0+

DateBins.Iterator

typealias · iOS 16.0+

DateBins.SubSequence

typealias · iOS 16.0+

Decimal.PrimitivePlottable

typealias · iOS 16.0+

Double.PrimitivePlottable

typealias · iOS 16.0+

Float.PrimitivePlottable

typealias · iOS 16.0+

Float16.PrimitivePlottable

typealias · iOS 16.0+

ForEach.Body

typealias · iOS 16.0+

FunctionAreaPlotContent

struct · iOS 18.0+

FunctionAreaPlotContent.Body

typealias · iOS 18.0+

FunctionLinePlotContent

struct · iOS 18.0+

FunctionLinePlotContent.Body

typealias · iOS 18.0+

Gradient.VisualValue

typealias · iOS 16.0+

Int.PrimitivePlottable

typealias · iOS 16.0+

Int16.PrimitivePlottable

typealias · iOS 16.0+

Int32.PrimitivePlottable

typealias · iOS 16.0+

Int64.PrimitivePlottable

typealias · iOS 16.0+

Int8.PrimitivePlottable

typealias · iOS 16.0+

InterpolationMethod

struct · iOS 16.0+

LineMark

struct · iOS 16.0+

LineMark.Body

typealias · iOS 16.0+

LinePlot

struct · iOS 18.0+

LinePlot.Body

typealias · iOS 18.0+

LinePlot.DataElement

typealias · iOS 18.0+

MajorValueAlignment

struct · iOS 17.0+

MarkDimension

struct · iOS 16.0+

MarkDimension.FloatLiteralType

typealias · iOS 16.0+

MarkDimension.IntegerLiteralType

typealias · iOS 16.0+

MarkDimensions

struct · iOS 18.0+

MarkDimensions.FloatLiteralType

typealias · iOS 18.0+

MarkDimensions.IntegerLiteralType

typealias · iOS 18.0+

MarkStackingMethod

struct · iOS 16.0+

Never.PrimitivePlottable

typealias · iOS 16.0+

NumberBins

struct · iOS 16.0+

NumberBins.Element

typealias · iOS 16.0+

NumberBins.Index

typealias · iOS 16.0+

NumberBins.Indices

typealias · iOS 16.0+

NumberBins.Iterator

typealias · iOS 16.0+

NumberBins.SubSequence

typealias · iOS 16.0+

Optional.Body

typealias · iOS 16.0+

Plot

struct · iOS 16.0+

Plot.Body

typealias · iOS 16.0+

PlotDimensionScaleRange

struct · iOS 16.0+

PlotDimensionScaleRange.VisualValue

typealias · iOS 16.0+

Plottable

protocol · iOS 16.0+

PlottableProjection

struct · iOS 18.0+

PlottableValue

struct · iOS 16.0+

PointMark

struct · iOS 16.0+

PointMark.Body

typealias · iOS 16.0+

PointPlot

struct · iOS 18.0+

PointPlot.Body

typealias · iOS 18.0+

PointPlot.DataElement

typealias · iOS 18.0+

PositionScaleRange

protocol · iOS 16.0+

PrimitivePlottableProtocol

protocol · iOS 16.0+

RectangleMark

struct · iOS 16.0+

RectangleMark.Body

typealias · iOS 16.0+

RectanglePlot

struct · iOS 18.0+

RectanglePlot.Body

typealias · iOS 18.0+

RectanglePlot.DataElement

typealias · iOS 18.0+

RuleMark

struct · iOS 16.0+

RuleMark.Body

typealias · iOS 16.0+

RulePlot

struct · iOS 18.0+

RulePlot.Body

typealias · iOS 18.0+

RulePlot.DataElement

typealias · iOS 18.0+

ScaleDomain

protocol · iOS 16.0+

ScaleRange

protocol · iOS 16.0+

ScaleType

struct · iOS 16.0+

SectorMark

struct · iOS 17.0+

SectorMark.Body

typealias · iOS 17.0+

SectorPlot

struct · iOS 18.0+

SectorPlot.Body

typealias · iOS 18.0+

SectorPlot.DataElement

typealias · iOS 18.0+

String.PrimitivePlottable

typealias · iOS 16.0+

SurfacePlot

struct · iOS 26.0+

SurfacePlot.Body

typealias · iOS 26.0+

TupleContent.Body

typealias · iOS 27.0+

UInt.PrimitivePlottable

typealias · iOS 16.0+

UInt16.PrimitivePlottable

typealias · iOS 16.0+

UInt32.PrimitivePlottable

typealias · iOS 16.0+

UInt64.PrimitivePlottable

typealias · iOS 16.0+

UInt8.PrimitivePlottable

typealias · iOS 16.0+

ValueAlignedChartScrollTargetBehavior

struct · iOS 17.0+

ValueAlignedLimitBehavior

struct · iOS 17.0+

VectorizedAreaPlotContent

struct · iOS 18.0+

VectorizedAreaPlotContent.Body

typealias · iOS 18.0+

VectorizedAreaPlotContent.DataElement

typealias · iOS 18.0+

VectorizedBarPlotContent

struct · iOS 18.0+

VectorizedBarPlotContent.Body

typealias · iOS 18.0+

VectorizedBarPlotContent.DataElement

typealias · iOS 18.0+

VectorizedChartContent

protocol · iOS 18.0+

VectorizedLinePlotContent

struct · iOS 18.0+

VectorizedLinePlotContent.Body

typealias · iOS 18.0+

VectorizedLinePlotContent.DataElement

typealias · iOS 18.0+

VectorizedPointPlotContent

struct · iOS 18.0+

VectorizedPointPlotContent.Body

typealias · iOS 18.0+

VectorizedPointPlotContent.DataElement

typealias · iOS 18.0+

VectorizedRectanglePlotContent

struct · iOS 18.0+

VectorizedRectanglePlotContent.Body

typealias · iOS 18.0+

VectorizedRectanglePlotContent.DataElement

typealias · iOS 18.0+

VectorizedRulePlotContent

struct · iOS 18.0+

VectorizedRulePlotContent.Body

typealias · iOS 18.0+

VectorizedRulePlotContent.DataElement

typealias · iOS 18.0+

VectorizedSectorPlotContent

struct · iOS 18.0+

VectorizedSectorPlotContent.Body

typealias · iOS 18.0+

VectorizedSectorPlotContent.DataElement

typealias · iOS 18.0+

Functions and constants

get · iOS 16.0+

startIndex

TypeScript
get startIndex(): number
Swift declaration
var startIndex: Int { get }

The position of the first element in a nonempty collection. If the collection is empty, `startIndex` is equal to `endIndex`.

init · iOS 16.0+

init

TypeScript
static initThresholds(thresholds: Array<number>): NumberBins<number>
Swift declaration
nonisolated init(thresholds: [Value])

Creates N-1 bins with the given N `thresholds`. - Parameter thresholds: The threshold values that surround the bins. - Returns: The bins.

get · iOS 16.0+

thresholds

TypeScript
get thresholds(): Array<number>
Swift declaration
var thresholds: [Value] { get }

Find the bin thresholds. - Returns: The bin thresholds that surround the bins.

init · iOS 16.0+

init

TypeScript
static initDataDesiredCountMinimumStride(data: Array<number>, desiredCount?: (number) | null, minimumStride?: number): NumberBins<number>
Swift declaration
nonisolated init(data: [Value], desiredCount: Int? = nil, minimumStride: Value = 0) where Value : BinaryFloatingPoint

Automatically determine the bins from data. - Parameter data: The given data values. - Parameter desiredCount: The desired number of bins for the given data. If `nil`, infer the number of bins automatically from data using [Scott's normal reference rule](https://doi.org/10.1093/biomet/66.3.605) capped at 200. - Parameter minimumStride: The minimum allowed bin size. - Returns: The inferred bins.

init · iOS 16.0+

init

TypeScript
static initDataDesiredCountMinimumStride34675(data: Array<number>, desiredCount?: (number) | null, minimumStride?: number): NumberBins<number>
Swift declaration
nonisolated init(data: [Value], desiredCount: Int? = nil, minimumStride: Value = 0) where Value : BinaryInteger

Automatically determine the bins from data. - Parameter data: The given data values. - Parameter desiredCount: The desired number of bins for the given data. If `nil`, infer the number of bins automatically from data using [Scott's normal reference rule](https://doi.org/10.1093/biomet/66.3.605) capped at 200. - Parameter minimumStride: The minimum allowed bin size. - Returns: The inferred bins.

init · iOS 16.0+

init

TypeScript
static initSizeRange(size: number, range: SDKHandle): NumberBins<number>
Swift declaration
nonisolated init(size: Value, range: ClosedRange<Value>) where Value : BinaryFloatingPoint

Creates uniform bins covering the given range. - Parameter size: The size of the bins. - Parameter range: The range of the data the bins cover. - Returns: The bins.

init · iOS 16.0+

init

TypeScript
static initSizeRange71288(size: number, range: SDKHandle): NumberBins<number>
Swift declaration
nonisolated init(size: Value, range: ClosedRange<Value>) where Value : BinaryInteger

Creates uniform bins covering the given range. - Parameter size: The size of the bins. - Parameter range: The range of the data the bins cover. - Returns: The bins.

method · iOS 16.0+

index

TypeScript
indexFor(value: number): number
Swift declaration
func index(for value: Value) -> Int

Returns the bin index for the given value. - Parameter value: The number value to get the index for. - Returns: The bin index.

method · iOS 16.0+

index

TypeScript
indexAfter(i: number): number
Swift declaration
func index(after i: Int) -> Int

Returns the position immediately after the given index. The successor of an index must be well defined. For an index `i` into a collection `c`, calling `c.index(after: i)` returns the same index every time. - Parameter i: A valid index of the collection. `i` must be less than `endIndex`. - Returns: The index value immediately after `i`.

init · iOS 16.0+

init

TypeScript
static initRangeDesiredCountMinimumStride(range: SDKHandle, desiredCount?: number, minimumStride?: number): NumberBins<number>
Swift declaration
nonisolated init(range: ClosedRange<Value>, desiredCount: Int = 10, minimumStride: Value = 0) where Value : BinaryFloatingPoint

Automatically determine the bins from a range of data. - Parameter range: The range the bins should cover. - Parameter desiredCount: The desired number of bins for the given data. If `nil`, infer the number automatically from data. - Parameter minimumStride: The minimum allowed bin size. - Returns: The inferred bins.

init · iOS 16.0+

init

TypeScript
static initRangeDesiredCountMinimumStride39834(range: SDKHandle, desiredCount?: number, minimumStride?: number): NumberBins<number>
Swift declaration
nonisolated init(range: ClosedRange<Value>, desiredCount: Int = 10, minimumStride: Value = 0) where Value : BinaryInteger

Automatically determine the bins from a range of data. - Parameter range: The range the bins should cover. - Parameter desiredCount: The desired number of bins for the given data. If `nil`, infer the number automatically from data. - Parameter minimumStride: The minimum allowed bin size. - Returns: The inferred bins.

init · iOS 16.0+

init

TypeScript
static initRangeCount(range: SDKHandle, count: number): NumberBins<number>
Swift declaration
nonisolated init(range: ClosedRange<Value>, count: Int) where Value : BinaryFloatingPoint

Creates the given number of bins for the range. - Parameter range: The range of the bins. The first bin starts at the lower bound of the range, and the last bin ends at the upper bound of the range. - Parameter count: The exact number of bins.

init · iOS 16.0+

init

TypeScript
static initRangeCount20397(range: SDKHandle, count: number): NumberBins<number>
Swift declaration
nonisolated init(range: ClosedRange<Value>, count: Int) where Value : BinaryInteger

Creates the given number of bins for the range. Expects that the range length is a multiple of `count` to allow uniform integer bins. - Parameter range: The range of the bins. The first bin starts at the lower bound of the range, and the last bin ends at the upper bound of the range. - Parameter count: The exact number of bins.

get · iOS 16.0+

endIndex

TypeScript
get endIndex(): number
Swift declaration
var endIndex: Int { get }

The collection's "past the end" position---that is, the position one greater than the last valid subscript argument. When you need a range that includes the last element of a collection, use the half-open range operator (`..<`) with `endIndex`. The `..<` operator creates a range that doesn't include the upper bound, so it's always safe to use with `endIndex`. For example: let numbers = [10, 20, 30, 40, 50] if let index = numbers.firstIndex(of: 30) { print(numbers[index ..< numbers.endIndex]) } // Prints "[30, 40, 50]" If the collection is empty, `endIndex` is equal to `startIndex`.

subscript · iOS 16.0+

subscript

TypeScript
subscript(position: number): ChartBinRange<number>
Swift declaration
subscript(position: Int) -> ChartBinRange<Value> { get }

Accesses the element at the specified position. The following example accesses an element of an array through its subscript to print its value: var streets = ["Adams", "Bryant", "Channing", "Douglas", "Evarts"] print(streets[1]) // Prints "Bryant" You can subscript a collection with any valid index other than the collection's end index. The end index refers to the position one past the last element of a collection, so it doesn't correspond with an element. - Parameter position: The position of the element to access. `position` must be a valid index of the collection that is not equal to the `endIndex` property. - Complexity: O(1)

init · iOS 16.0+

init

TypeScript
static initCenteredAnchorMultiLabelAlignmentCollisionResolutionOffsetsMarksOrientationHorizontalSpacingVerticalSpacing(centered?: (boolean) | null, anchor?: (_SwiftUICore_UnitPoint) | null, multiLabelAlignment?: (_SwiftUICore_Alignment) | null, collisionResolution?: AxisValueLabelCollisionResolution, offsetsMarks?: (boolean) | null, orientation?: AxisValueLabelOrientation, horizontalSpacing?: (number) | null, verticalSpacing?: (number) | null): AxisValueLabel<never>
Swift declaration
nonisolated init(centered: Bool? = nil, anchor: UnitPoint? = nil, multiLabelAlignment: Alignment? = nil, collisionResolution: AxisValueLabelCollisionResolution = .automatic, offsetsMarks: Bool? = nil, orientation: AxisValueLabelOrientation = .automatic, horizontalSpacing: CGFloat? = nil, verticalSpacing: CGFloat? = nil) where Content == Never

Constructs axis value labels with the given properties and default text. - Parameters: - centered: Whether to center the label between two axis values. If `nil`, default to true for discrete data, false to continuous data. - anchor: The anchor point on the bounding box of the text element that attaches to the `position`. - multiLabelAlignment: How labels along the axis are aligned with each other. - collisionResolution: How labels that collide with others are resolved. - offsetsMarks: Whether to offset marks to accomodate for the space used by the label. - orientation: The orientation of the label. - horizontalSpacing: The horizontal spacing of the label. If `nil`, a default spacing will be used. - verticalSpacing: The vertical spacing of the label. If `nil`, a default spacing will be used.

init · iOS 16.0+

init

TypeScript
static initCenteredAnchorMultiLabelAlignmentCollisionResolutionOffsetsMarksOrientationHorizontalSpacingVerticalSpacing33134(titleResource: _Foundation_LocalizedStringResource, centered?: (boolean) | null, anchor?: (_SwiftUICore_UnitPoint) | null, multiLabelAlignment?: (_SwiftUICore_Alignment) | null, collisionResolution?: AxisValueLabelCollisionResolution, offsetsMarks?: (boolean) | null, orientation?: AxisValueLabelOrientation, horizontalSpacing?: (number) | null, verticalSpacing?: (number) | null): AxisValueLabel<_SwiftUICore_Text>
Swift declaration
nonisolated init(_ titleResource: LocalizedStringResource, centered: Bool? = nil, anchor: UnitPoint? = nil, multiLabelAlignment: Alignment? = nil, collisionResolution: AxisValueLabelCollisionResolution = .automatic, offsetsMarks: Bool? = nil, orientation: AxisValueLabelOrientation = .automatic, horizontalSpacing: CGFloat? = nil, verticalSpacing: CGFloat? = nil) where Content == Text

Constructs an axis value label with the given properties to display the given string. - Parameters: - titleResource: A title generated from a localized string. - centered: Whether to center the label between two axis values. If `nil`, default to true for discrete data, false to continuous data. - anchor: The anchor point on the bounding box of the text element that attaches to the `position`. - multiLabelAlignment: How labels along the axis are aligned with each other. - collisionResolution: How labels that collide with others are resolved. - offsetsMarks: Whether to offset marks to accomodate for the space used by the label. - orientation: The orientation of the label. - horizontalSpacing: The horizontal spacing of the label. If `nil`, a default spacing will be used. - verticalSpacing: The vertical spacing of the label.

init · iOS 16.0+

init

TypeScript
static initCenteredAnchorMultiLabelAlignmentCollisionResolutionOffsetsMarksOrientationHorizontalSpacingVerticalSpacing87872(titleKey: _SwiftUICore_LocalizedStringKey, centered?: (boolean) | null, anchor?: (_SwiftUICore_UnitPoint) | null, multiLabelAlignment?: (_SwiftUICore_Alignment) | null, collisionResolution?: AxisValueLabelCollisionResolution, offsetsMarks?: (boolean) | null, orientation?: AxisValueLabelOrientation, horizontalSpacing?: (number) | null, verticalSpacing?: (number) | null): AxisValueLabel<_SwiftUICore_Text>
Swift declaration
nonisolated init(_ titleKey: LocalizedStringKey, centered: Bool? = nil, anchor: UnitPoint? = nil, multiLabelAlignment: Alignment? = nil, collisionResolution: AxisValueLabelCollisionResolution = .automatic, offsetsMarks: Bool? = nil, orientation: AxisValueLabelOrientation = .automatic, horizontalSpacing: CGFloat? = nil, verticalSpacing: CGFloat? = nil) where Content == Text

Constructs an axis value label with the given properties to display the given string. - Parameters: - titleKey: A title generated from a localized string. - centered: Whether to center the label between two axis values. If `nil`, default to true for discrete data, false to continuous data. - anchor: The anchor point on the bounding box of the text element that attaches to the `position`. - multiLabelAlignment: How labels along the axis are aligned with each other. - collisionResolution: How labels that collide with others are resolved. - offsetsMarks: Whether to offset marks to accomodate for the space used by the label. - orientation: The orientation of the label. - horizontalSpacing: The horizontal spacing of the label. If `nil`, a default spacing will be used. - verticalSpacing: The vertical spacing of the label.

init · iOS 16.0+

init

TypeScript
static initCenteredAnchorMultiLabelAlignmentCollisionResolutionOffsetsMarksOrientationHorizontalSpacingVerticalSpacing60146(title: string, centered?: (boolean) | null, anchor?: (_SwiftUICore_UnitPoint) | null, multiLabelAlignment?: (_SwiftUICore_Alignment) | null, collisionResolution?: AxisValueLabelCollisionResolution, offsetsMarks?: (boolean) | null, orientation?: AxisValueLabelOrientation, horizontalSpacing?: (number) | null, verticalSpacing?: (number) | null): AxisValueLabel<_SwiftUICore_Text>
Swift declaration
nonisolated init<S>(_ title: S, centered: Bool? = nil, anchor: UnitPoint? = nil, multiLabelAlignment: Alignment? = nil, collisionResolution: AxisValueLabelCollisionResolution = .automatic, offsetsMarks: Bool? = nil, orientation: AxisValueLabelOrientation = .automatic, horizontalSpacing: CGFloat? = nil, verticalSpacing: CGFloat? = nil) where Content == Text, S : StringProtocol

Constructs an axis value label with the given properties to display the given string. - Parameters: - title: A title generated from a string. - centered: Whether to center the label between two axis values. If `nil`, default to true for discrete data, false to continuous data. - anchor: The anchor point on the bounding box of the text element that attaches to the `position`. - multiLabelAlignment: How labels along the axis are aligned with each other. - collisionResolution: How labels that collide with others are resolved. - offsetsMarks: Whether to offset marks to accomodate for the space used by the label. - orientation: The orientation of the label. - horizontalSpacing: The horizontal spacing of the label. If `nil`, a default spacing will be used. - verticalSpacing: The vertical spacing of the label.

init · iOS 18.0+

init

TypeScript
static initFloatLiteral(value: number): MarkDimensions<unknown>
Swift declaration
nonisolated init(floatLiteral value: Double)

Creates a constant width or height from a floating point value. - Parameter value: The width or height.

init · iOS 18.0+

init

TypeScript
static initIntegerLiteral(value: number): MarkDimensions<unknown>
Swift declaration
nonisolated init(integerLiteral value: Int)

Creates a constant width or height from an integer. - Parameter value: The width or height.

static · iOS 18.0+

fixed

TypeScript
static fixed(value: number): MarkDimensions<unknown>
Swift declaration
static func fixed(_ value: CGFloat) -> MarkDimensions<DataElement>

A constant dimension. - Parameter value: The fixed width or height.

static · iOS 18.0+

fixed

TypeScript
static fixed86909(keyPath: SDKHandle): MarkDimensions<unknown>
Swift declaration
static func fixed(_ keyPath: KeyPath<DataElement, CGFloat>) -> MarkDimensions<DataElement>

A constant dimension. - Parameter value: The fixed width or height.

static · iOS 18.0+

inset

TypeScript
static inset(value: number): MarkDimensions<unknown>
Swift declaration
static func inset(_ value: CGFloat) -> MarkDimensions<DataElement>

A dimension that's the step size minus the specified inset value on each side. - Parameter value: The given inset value in screen coordinates.

static · iOS 18.0+

inset

TypeScript
static inset43786(keyPath: SDKHandle): MarkDimensions<unknown>
Swift declaration
static func inset(_ keyPath: KeyPath<DataElement, CGFloat>) -> MarkDimensions<DataElement>

A dimension that's the step size minus the specified inset value on each side. - Parameter value: The given inset value in screen coordinates.

static · iOS 18.0+

ratio

TypeScript
static ratio(value: number): MarkDimensions<unknown>
Swift declaration
static func ratio(_ value: CGFloat) -> MarkDimensions<DataElement>

A dimension that's proportional to the scale step size, using the specified ratio. - Parameter value: The given ratio, from 0 to 1.

static · iOS 18.0+

ratio

TypeScript
static ratio62748(keyPath: SDKHandle): MarkDimensions<unknown>
Swift declaration
static func ratio(_ keyPath: KeyPath<DataElement, CGFloat>) -> MarkDimensions<DataElement>

A dimension that's proportional to the scale step size, using the specified ratio. - Parameter value: The given ratio, from 0 to 1.

get · iOS 18.0+

automatic

TypeScript
static get automatic(): MarkDimensions<unknown>
Swift declaration
static var automatic: MarkDimensions<DataElement> { get }

A dimension that determines its value automatically.

static · iOS 16.0+

value

TypeScript
static valueUnitCalendar(labelKey: _SwiftUICore_LocalizedStringKey, date: globalThis.Date, unit: _Foundation_Calendar_Component, calendar?: (_Foundation_Calendar) | null): PlottableValue<globalThis.Date>
Swift declaration
static func value(_ labelKey: LocalizedStringKey, _ date: Date, unit: Calendar.Component, calendar: Calendar? = nil) -> PlottableValue<Value> where Value == Date

Creates a parameter value with label key and value. - Parameter labelKey: The localized string key for label. - Parameter range: The parameter's value.

static · iOS 16.0+

value

TypeScript
static valueUnitCalendar53015(label: _SwiftUICore_Text, date: globalThis.Date, unit: _Foundation_Calendar_Component, calendar?: (_Foundation_Calendar) | null): PlottableValue<globalThis.Date>
Swift declaration
static func value(_ label: Text, _ date: Date, unit: Calendar.Component, calendar: Calendar? = nil) -> PlottableValue<Value> where Value == Date

Creates a parameter value with label and value. - Parameter label: The label. - Parameter value: The parameter's value.

static · iOS 16.0+

value

TypeScript
static valueUnitCalendar49292(labelResource: _Foundation_LocalizedStringResource, date: globalThis.Date, unit: _Foundation_Calendar_Component, calendar?: (_Foundation_Calendar) | null): PlottableValue<globalThis.Date>
Swift declaration
static func value(_ labelResource: LocalizedStringResource, _ date: Date, unit: Calendar.Component, calendar: Calendar? = nil) -> PlottableValue<Value> where Value == Date

Creates a parameter value with label and value. - Parameter labelResource: The localized string resource for label. - Parameter range: The parameter's value.

static · iOS 16.0+

value

TypeScript
static valueUnitCalendar58074(label: string, date: globalThis.Date, unit: _Foundation_Calendar_Component, calendar?: (_Foundation_Calendar) | null): PlottableValue<globalThis.Date>
Swift declaration
static func value<S>(_ label: S, _ date: Date, unit: Calendar.Component, calendar: Calendar? = nil) -> PlottableValue<Value> where Value == Date, S : StringProtocol

Creates a parameter value with label and value. - Parameter label: The label. - Parameter value: The parameter's value.

static · iOS 16.0+

value

TypeScript
static value(labelResource: _Foundation_LocalizedStringResource, value: number): PlottableValue<number>
Swift declaration
static func value(_ labelResource: LocalizedStringResource, _ value: Value) -> PlottableValue<Value>

Creates a parameter value with label and value. - Parameter labelResource: The localized string resource for label. - Parameter value: The parameter's value.

static · iOS 16.0+

value

TypeScript
static value40626(labelKey: _SwiftUICore_LocalizedStringKey, value: number): PlottableValue<number>
Swift declaration
static func value(_ labelKey: LocalizedStringKey, _ value: Value) -> PlottableValue<Value>

Creates a parameter value with label key and value. - Parameter labelKey: The localized string key for label. - Parameter value: The parameter's value.

static · iOS 16.0+

value

TypeScript
static value9453(label: _SwiftUICore_Text, value: number): PlottableValue<number>
Swift declaration
static func value(_ label: Text, _ value: Value) -> PlottableValue<Value>

Creates a parameter value with label and value. - Parameter label: The label. - Parameter value: The parameter's value.

static · iOS 16.0+

value

TypeScript
static value4073(label: string, value: number): PlottableValue<number>
Swift declaration
static func value<S>(_ label: S, _ value: Value) -> PlottableValue<Value> where S : StringProtocol

Creates a parameter value with label and value. - Parameter label: The label. - Parameter value: The parameter's value.

get · iOS 17.0+

page

TypeScript
static get page(): MajorValueAlignment<number>
Swift declaration
static var page: MajorValueAlignment<Value> { get }

Automatically set the major aligment unit to be the size of the visible domain which is equivalent to a page.

static · iOS 17.0+

unit

TypeScript
static unit(unit: number): MajorValueAlignment<number>
Swift declaration
static func unit(_ unit: Value) -> MajorValueAlignment<Value> where Value : Numeric

Align to units. - Parameter unit: The alignment unit.

static · iOS 17.0+

matching

TypeScript
static matching(components: _Foundation_DateComponents): MajorValueAlignment<globalThis.Date>
Swift declaration
static func matching(_ components: DateComponents) -> MajorValueAlignment<Value> where Value == Date

Align to calendar components. - Parameter components: The alignment components.

static · iOS 18.0+

value

TypeScript
static value(labelResource: _Foundation_LocalizedStringResource, value: number): PlottableProjection<unknown, number>
Swift declaration
static func value(_ labelResource: LocalizedStringResource, _ value: DataValue) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static value69987(labelResource: _Foundation_LocalizedStringResource, value: SDKHandle): PlottableProjection<unknown, number>
Swift declaration
static func value(_ labelResource: LocalizedStringResource, _ value: KeyPath<DataElement, DataValue>) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static value15625(labelKey: _SwiftUICore_LocalizedStringKey, value: number): PlottableProjection<unknown, number>
Swift declaration
static func value(_ labelKey: LocalizedStringKey, _ value: DataValue) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static value37385(labelKey: _SwiftUICore_LocalizedStringKey, value: SDKHandle): PlottableProjection<unknown, number>
Swift declaration
static func value(_ labelKey: LocalizedStringKey, _ value: KeyPath<DataElement, DataValue>) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static value67314(label: _SwiftUICore_Text, value: number): PlottableProjection<unknown, number>
Swift declaration
static func value(_ label: Text, _ value: DataValue) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static value78439(label: _SwiftUICore_Text, value: SDKHandle): PlottableProjection<unknown, number>
Swift declaration
static func value(_ label: Text, _ value: KeyPath<DataElement, DataValue>) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static value89928(label: SDKHandle, value: number): PlottableProjection<unknown, number>
Swift declaration
static func value(_ label: some StringProtocol, _ value: DataValue) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static value62251(label: SDKHandle, value: SDKHandle): PlottableProjection<unknown, number>
Swift declaration
static func value(_ label: some StringProtocol, _ value: KeyPath<DataElement, DataValue>) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static valueUnitCalendar(labelKey: _SwiftUICore_LocalizedStringKey, date: globalThis.Date, unit: _Foundation_Calendar_Component, calendar?: (_Foundation_Calendar) | null): PlottableProjection<unknown, globalThis.Date>
Swift declaration
static func value(_ labelKey: LocalizedStringKey, _ date: DataValue, unit: Calendar.Component, calendar: Calendar? = nil) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static valueUnitCalendar69495(label: _SwiftUICore_Text, date: globalThis.Date, unit: _Foundation_Calendar_Component, calendar?: (_Foundation_Calendar) | null): PlottableProjection<unknown, globalThis.Date>
Swift declaration
static func value(_ label: Text, _ date: DataValue, unit: Calendar.Component, calendar: Calendar? = nil) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static valueUnitCalendar91127(labelResource: _Foundation_LocalizedStringResource, date: globalThis.Date, unit: _Foundation_Calendar_Component, calendar?: (_Foundation_Calendar) | null): PlottableProjection<unknown, globalThis.Date>
Swift declaration
static func value(_ labelResource: LocalizedStringResource, _ date: DataValue, unit: Calendar.Component, calendar: Calendar? = nil) -> PlottableProjection<DataElement, DataValue>
static · iOS 18.0+

value

TypeScript
static valueUnitCalendar29526(label: SDKHandle, date: globalThis.Date, unit: _Foundation_Calendar_Component, calendar?: (_Foundation_Calendar) | null): PlottableProjection<unknown, globalThis.Date>
Swift declaration
static func value(_ label: some StringProtocol, _ date: DataValue, unit: Calendar.Component, calendar: Calendar? = nil) -> PlottableProjection<DataElement, DataValue>
init · iOS 16.0+

init

TypeScript
static initPresetPositionValuesStroke(preset?: AxisMarkPreset, position?: AxisMarkPosition, values?: AxisMarkValues, stroke?: (_SwiftUICore_StrokeStyle) | null): AxisMarks<never>
Swift declaration
nonisolated init(preset: AxisMarkPreset = .automatic, position: AxisMarkPosition = .automatic, values: AxisMarkValues = .automatic, stroke: StrokeStyle? = nil) where Content == Never

Creates axis markers with the given properties, will override default markers. Default content will be used for the axis markers. - Parameters: - preset: The preset of the axis markers. - position: The position of the axis markers. - values: The values of the axis markers. - stroke: The stroke to use for grid lines and ticks.

init · iOS 16.0+

init

TypeScript
static initPresetPositionValuesStroke14330(preset: AxisMarkPreset, position: AxisMarkPosition, values: Array<number>, stroke?: (_SwiftUICore_StrokeStyle) | null): AxisMarks<never>
Swift declaration
nonisolated init<Value>(preset: AxisMarkPreset = .automatic, position: AxisMarkPosition = .automatic, values: [Value], stroke: StrokeStyle? = nil) where Content == Never, Value : Plottable

Creates axis markers with the given properties, will override default markers. Default content will be used for the axis markers. - Parameters: - preset: The preset of the axis markers. - position: The position of the axis markers. - values: The values of the axis markers. - stroke: The stroke to use for grid lines and ticks.

get · iOS 27.0+

body

TypeScript
get body(): Promise<never>
Swift declaration
@MainActor @preconcurrency var body: Never { get }

The content and behavior of the chart content.

method · iOS 17.0+

updateTarget

TypeScript
updateTarget(target: _SwiftUICore_ScrollTarget, context: ChartScrollTargetBehaviorContext): { $ret: null; $out: { "target": _SwiftUICore_ScrollTarget } }
Swift declaration
func updateTarget(_ target: inout ScrollTarget, context: ChartScrollTargetBehaviorContext)

Omit the output parameters from the call. The result contains $ret and $out, with target inside $out.

get · iOS 16.0+

perceptualUnitRect

TypeScript
get perceptualUnitRect(): { x: number; y: number; width: number; height: number }
Swift declaration
var perceptualUnitRect: CGRect { get }

Returns a rectangle that bounds the shape in such a way that viewers perceive it as having the same size and position as a unit rectangle.

get · iOS 27.0+

body

TypeScript
get body(): never
Swift declaration
nonisolated var body: Never { get }

The content and behavior of the chart content.

init · iOS 16.0+

init

TypeScript
static init(primitivePlottable: number): (_Foundation_Decimal) | null
Swift declaration
nonisolated init?(primitivePlottable: Double)

Creates the plottable value for the underlying type, if any, that corresponds to the primitive plottable value. This initializer fails if there is no corresponding plottable value.

get · iOS 16.0+

primitivePlottable

TypeScript
get primitivePlottable(): number
Swift declaration
var primitivePlottable: Double { get }

The primitive plottable value that corresponds to the plottable value of the underlying type.

Skipped declarations

374 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ForEach.init(_:content:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

ForEach.init(_:id:content:)

This declaration needs Swift generic type arguments. (no canonical witness for Data)

ForEach.body

The containing type needs Swift generic type arguments. (no canonical witness for Data, Content)

ModifiedContent.body

The containing type needs Swift generic type arguments. (no canonical witness for Content, Modifier)

View.chart3DPose(_:)

This protocol needs associated types that cannot yet cross the bridge.

View.chart3DPose(_:)

This protocol needs associated types that cannot yet cross the bridge.

View.chart3DCameraProjection(_:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartXAxisStyle(content:)

callback cannot propagate synchronous failure

View.chartYAxisStyle(content:)

callback cannot propagate synchronous failure

View.chartXAxis(_:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartYAxis(_:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartXAxis(content:)

callback cannot propagate synchronous failure

View.chartYAxis(content:)

callback cannot propagate synchronous failure

View.chartZAxis(_:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartZAxis(content:)

callback cannot propagate synchronous failure

View.chartXAxisLabel(position:alignment:spacing:content:)

callback cannot propagate synchronous failure

View.chartXAxisLabel(_:position:alignment:spacing:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartXAxisLabel(_:position:alignment:spacing:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartXAxisLabel(_:position:alignment:spacing:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartYAxisLabel(position:alignment:spacing:content:)

callback cannot propagate synchronous failure

View.chartYAxisLabel(_:position:alignment:spacing:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartYAxisLabel(_:position:alignment:spacing:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartYAxisLabel(_:position:alignment:spacing:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartZAxisLabel(_:position:alignment:spacing:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartZAxisLabel(_:position:alignment:spacing:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartZAxisLabel(_:position:alignment:spacing:)

This protocol needs associated types that cannot yet cross the bridge.

ViewBuilder.buildBlock()

This protocol needs associated types that cannot yet cross the bridge.

ViewBuilder.buildBlock(_:)

Swift parameter packs cannot cross the bridge.

ViewBuilder.buildLimitedAvailability(_:)

This protocol needs associated types that cannot yet cross the bridge.

View.chartScrollableAxes(_:)

This protocol needs associated types that cannot yet cross the bridge.