---
title: "longestLabel(extendPastBy:)"
framework: charts
role: symbol
role_heading: Type Method
path: "charts/axistick/length/longestlabel(extendpastby:)"
---

# longestLabel(extendPastBy:)

Describes a tick that extends to the longest label on the axis, with the given additional length.

## Declaration

```swift
static func longestLabel(extendPastBy: CGFloat = 0) -> AxisTick.Length
```

## Parameters

- `extendPastBy`: The additional length to add past the associated label.
