---
title: "cardinal(tension:)"
framework: charts
role: symbol
role_heading: Type Method
path: "charts/interpolationmethod/cardinal(tension:)"
---

# cardinal(tension:)

Interpolate data points with cardinal spline, using the given tension parameter.

## Declaration

```swift
static func cardinal(tension: CGFloat) -> InterpolationMethod
```

## Parameters

- `tension`: A parameter that controls the length of tangents in the cardinal spline.
