API Differences in Charts in macOS 14.0

It's more difficult than it used to be to find what changed in Apple SDKs. This page is automatically generated and shows what is new in Charts in the macOS 14.0 SDK.

Table of Contents

Protocols

ChartScrollTargetBehavior

Structs

AnnotationOverflowResolution
ChartAxisContent
ChartScrollTargetBehaviorContext
MajorValueAlignment
SectorMark
ValueAlignedChartScrollTargetBehavior
ValueAlignedLimitBehavior

Functions & Methods

AxisContent
public func compositingLayer() -> some Charts.AxisContent
AxisContent
public func compositingLayer<V>(@SwiftUICore.ViewBuilder style: (SwiftUICore.PlaceholderContentView<Self>) -> V) -> some Charts.AxisContent where V : SwiftUICore.View
ChartContent
nonisolated public func annotation<C>(position: Charts.AnnotationPosition = .automatic, alignment: SwiftUICore.Alignment = .center, spacing: CoreFoundation.CGFloat? = nil, overflowResolution: Charts.AnnotationOverflowResolution, @SwiftUICore.ViewBuilder content: () -> C) -> some Charts.ChartContent where C : SwiftUICore.View
ChartContent
nonisolated public func annotation<C>(position: Charts.AnnotationPosition = .automatic, alignment: SwiftUICore.Alignment = .center, spacing: CoreFoundation.CGFloat? = nil, overflowResolution: Charts.AnnotationOverflowResolution, @SwiftUICore.ViewBuilder content: @escaping (Charts.AnnotationContext) -> C) -> some Charts.ChartContent where C : SwiftUICore.View
ChartContent
nonisolated public func compositingLayer() -> some Charts.ChartContent
ChartContent
nonisolated public func compositingLayer<V>(style: (SwiftUICore.PlaceholderContentView<Self>) -> V) -> some Charts.ChartContent where V : SwiftUICore.View
ChartContent
nonisolated public func zIndex(_ value: Swift.Double) -> some Charts.ChartContent
ChartProxy
public func angle(at position: CoreFoundation.CGPoint) -> SwiftUICore.Angle
ChartProxy
public func selectAngleValue(at angle: SwiftUICore.Angle)
ChartProxy
public func selectXRange(from: CoreFoundation.CGFloat, to: CoreFoundation.CGFloat)
ChartProxy
public func selectXValue(at xPosition: CoreFoundation.CGFloat)
ChartProxy
public func selectYRange(from: CoreFoundation.CGFloat, to: CoreFoundation.CGFloat)
ChartProxy
public func selectYValue(at yPosition: CoreFoundation.CGFloat)
ChartProxy
public func value<P>(atAngle angle: SwiftUICore.Angle, as: P.Type = P.self) -> P? where P : Charts.Plottable
ChartScrollTargetBehavior
public func updateTarget(_ target: inout SwiftUICore.ScrollTarget, context: SwiftUI.ScrollTargetBehaviorContext)
ChartScrollTargetBehavior
public static func valueAligned<P>(unit: P, majorAlignment: Charts.MajorValueAlignment<P>? = nil, limitBehavior: Charts.ValueAlignedLimitBehavior = .automatic) -> Charts.ValueAlignedChartScrollTargetBehavior where Self == Charts.ValueAlignedChartScrollTargetBehavior, P : Charts.Plottable, P : Swift.Numeric
ChartScrollTargetBehavior
public static func valueAligned(matching components: Foundation.DateComponents, majorAlignment: Charts.MajorValueAlignment<Foundation.Date>? = nil, limitBehavior: Charts.ValueAlignedLimitBehavior = .automatic) -> Charts.ValueAlignedChartScrollTargetBehavior where Self == Charts.ValueAlignedChartScrollTargetBehavior
ChartScrollTargetBehavior
public static func valueAligned<X, Y>(xUnit: X, yUnit: Y, xMajorAlignment: Charts.MajorValueAlignment<X>? = nil, yMajorAlignment: Charts.MajorValueAlignment<Y>? = nil, limitBehavior: Charts.ValueAlignedLimitBehavior = .automatic) -> Charts.ValueAlignedChartScrollTargetBehavior where Self == Charts.ValueAlignedChartScrollTargetBehavior, X : Charts.Plottable, X : Swift.Numeric, Y : Charts.Plottable, Y : Swift.Numeric
ChartScrollTargetBehavior
public static func valueAligned(xMatching xComponents: Foundation.DateComponents, yMatching yComponents: Foundation.DateComponents, xMajorAlignment: Charts.MajorValueAlignment<Foundation.Date>? = nil, yMajorAlignment: Charts.MajorValueAlignment<Foundation.Date>? = nil, limitBehavior: Charts.ValueAlignedLimitBehavior = .automatic) -> Charts.ValueAlignedChartScrollTargetBehavior where Self == Charts.ValueAlignedChartScrollTargetBehavior
ChartScrollTargetBehavior
public static func valueAligned<Y>(xMatching xComponents: Foundation.DateComponents, yUnit: Y, xMajorAlignment: Charts.MajorValueAlignment<Foundation.Date>? = nil, yMajorAlignment: Charts.MajorValueAlignment<Y>? = nil, limitBehavior: Charts.ValueAlignedLimitBehavior = .automatic) -> Charts.ValueAlignedChartScrollTargetBehavior where Self == Charts.ValueAlignedChartScrollTargetBehavior, Y : Charts.Plottable, Y : Swift.Numeric
ChartScrollTargetBehavior
public static func valueAligned<X>(xUnit: X, yMatching yComponents: Foundation.DateComponents, xMajorAlignment: Charts.MajorValueAlignment<X>? = nil, yMajorAlignment: Charts.MajorValueAlignment<Foundation.Date>? = nil, limitBehavior: Charts.ValueAlignedLimitBehavior = .automatic) -> Charts.ValueAlignedChartScrollTargetBehavior where Self == Charts.ValueAlignedChartScrollTargetBehavior, X : Charts.Plottable, X : Swift.Numeric
SwiftUI.PagingScrollTargetBehavior
public func updateTarget(_ target: inout SwiftUICore.ScrollTarget, context: Charts.ChartScrollTargetBehaviorContext)
SwiftUICore.View
nonisolated public func chartAngleSelection<P>(value: SwiftUICore.Binding<P?>) -> some SwiftUICore.View where P : Charts.Plottable
SwiftUICore.View
nonisolated public func chartGesture(_ gesture: @escaping (Charts.ChartProxy) -> some Gesture) -> some SwiftUICore.View
SwiftUICore.View
nonisolated public func chartScrollPosition(initialX: some Plottable) -> some SwiftUICore.View
SwiftUICore.View
nonisolated public func chartScrollPosition(x: SwiftUICore.Binding<some Plottable>) -> some SwiftUICore.View
SwiftUICore.View
nonisolated public func chartScrollPosition(initialY: some Plottable) -> some SwiftUICore.View
SwiftUICore.View
nonisolated public func chartScrollPosition(y: SwiftUICore.Binding<some Plottable>) -> some SwiftUICore.View
SwiftUICore.View
nonisolated public func chartScrollTargetBehavior(_ behavior: some ChartScrollTargetBehavior) -> some SwiftUICore.View
SwiftUICore.View
nonisolated public func chartScrollableAxes(_ axes: SwiftUICore.Axis.Set) -> some SwiftUICore.View
SwiftUICore.View
nonisolated public func chartXAxisStyle<Content>(@SwiftUICore.ViewBuilder content: @escaping (Charts.ChartAxisContent) -> Content) -> some SwiftUICore.View where Content : SwiftUICore.View
SwiftUICore.View
nonisolated public func chartXSelection<P>(value: SwiftUICore.Binding<P?>) -> some SwiftUICore.View where P : Charts.Plottable
SwiftUICore.View
nonisolated public func chartXSelection<P>(range: SwiftUICore.Binding<Swift.ClosedRange<P>?>) -> some SwiftUICore.View where P : Charts.Plottable, P : Swift.Comparable
SwiftUICore.View
nonisolated public func chartXVisibleDomain<P>(length: P) -> some SwiftUICore.View where P : Charts.Plottable, P : Swift.Numeric
SwiftUICore.View
nonisolated public func chartYAxisStyle<Content>(@SwiftUICore.ViewBuilder content: @escaping (Charts.ChartAxisContent) -> Content) -> some SwiftUICore.View where Content : SwiftUICore.View
SwiftUICore.View
nonisolated public func chartYSelection<P>(value: SwiftUICore.Binding<P?>) -> some SwiftUICore.View where P : Charts.Plottable
SwiftUICore.View
nonisolated public func chartYSelection<P>(range: SwiftUICore.Binding<Swift.ClosedRange<P>?>) -> some SwiftUICore.View where P : Charts.Plottable, P : Swift.Comparable
SwiftUICore.View
nonisolated public func chartYVisibleDomain<P>(length: P) -> some SwiftUICore.View where P : Charts.Plottable, P : Swift.Numeric

Properties & Constants

Chart
internal var actualBody: some SwiftUICore.View
ChartProxy
public var plotContainerFrame: SwiftUICore.Anchor<CoreFoundation.CGRect>?
ChartProxy
public var plotFrame: SwiftUICore.Anchor<CoreFoundation.CGRect>?
ChartProxy
public var plotSize: CoreFoundation.CGSize

Conformances

ChartAxisContent
Swift.Sendable
SectorMark
Charts.ChartContent
SectorMark
Swift.Sendable
SwiftUI.PagingScrollTargetBehavior
Charts.ChartScrollTargetBehavior