One Logo Pool Ball
Charts · IOS API REFERENCE

InterpolationMethod

struct · iOS 16.0+ · SDK 27.1

@frozen struct InterpolationMethod

The ways in which line or area marks interpolate their data.

Members (10)

static · iOS 16.0+

catmullRom

TypeScript
static catmullRomAlpha(alpha: number): InterpolationMethod
Swift declaration
static func catmullRom(alpha: CGFloat) -> InterpolationMethod

Interpolate data points with Catmull-Rom spline, using the given alpha parameter. - Parameter alpha: A parameter for the Catmull-Rom spline. Use 0 for a uniform spline, 0.5 for the centripetal spline, and 1.0 for the chordal spline.

get · iOS 16.0+

catmullRom

TypeScript
static get catmullRom(): InterpolationMethod
Swift declaration
static var catmullRom: InterpolationMethod { get }

Interpolate data points with Catmull-Rom spline.

get · iOS 16.0+

stepCenter

TypeScript
static get stepCenter(): InterpolationMethod
Swift declaration
static var stepCenter: InterpolationMethod { get }

Interpolate data points with a step, or piece-wise constant function, where the data point is at the center of the step.

get · iOS 16.0+

description

TypeScript
get description(): string
Swift declaration
var description: String { get }

A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.

get · iOS 16.0+

linear

TypeScript
static get linear(): InterpolationMethod
Swift declaration
static var linear: InterpolationMethod { get }

Interpolate data points linearly.

get · iOS 16.0+

stepEnd

TypeScript
static get stepEnd(): InterpolationMethod
Swift declaration
static var stepEnd: InterpolationMethod { get }

Interpolate data points with a step, or piece-wise constant function, where the data point is at the end of the step.

static · iOS 16.0+

cardinal

TypeScript
static cardinalTension(tension: number): InterpolationMethod
Swift declaration
static func cardinal(tension: CGFloat) -> InterpolationMethod

Interpolate data points with cardinal spline, using the given tension parameter. - Parameter tension: A parameter that controls the length of tangents in the cardinal spline.

get · iOS 16.0+

cardinal

TypeScript
static get cardinal(): InterpolationMethod
Swift declaration
static var cardinal: InterpolationMethod { get }

Interpolate data points with cardinal spline.

get · iOS 16.0+

monotone

TypeScript
static get monotone(): InterpolationMethod
Swift declaration
static var monotone: InterpolationMethod { get }

Interpolate data points with a cubic spline that preserves monotonicity of the data.

get · iOS 16.0+

stepStart

TypeScript
static get stepStart(): InterpolationMethod
Swift declaration
static var stepStart: InterpolationMethod { get }

Interpolate data points with a step, or piece-wise constant function, where the data point is at the start of the step.

Skipped declarations

No declarations were skipped in this snapshot.

All Charts types →