Skip to content

InterpolationMethod

EnumChartGuruChartGuru
public enum InterpolationMethod

Interpolation used to connect line and area samples, including straight, curved, and stepped paths.

Every value except InterpolationMethod.Natural matches a Swift Charts InterpolationMethod case of the same name in lower camel case. Values are serialized by their number, so the order must not change.

Linear = 0

Returns

ChartGuru.InterpolationMethod

CatmullRom = 1

Returns

ChartGuru.InterpolationMethod

Monotone = 2

Returns

ChartGuru.InterpolationMethod

StepStart = 3

Returns

ChartGuru.InterpolationMethod

StepEnd = 4

Returns

ChartGuru.InterpolationMethod

StepCenter = 5

Steps halfway between points, like Swift Charts’ .stepCenter.

Returns

ChartGuru.InterpolationMethod

Cardinal = 6

Returns

ChartGuru.InterpolationMethod

Natural = 7

A natural cubic spline. Chart Guru extension: Swift Charts has no .natural interpolation.

Returns

ChartGuru.InterpolationMethod