<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Charts",
  "identifier" : "/documentation/Charts/AxisTick/Length",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift Charts"
    ],
    "preciseIdentifier" : "s:6Charts8AxisTickV6LengthV"
  },
  "title" : "AxisTick.Length"
}
-->

# AxisTick.Length

Describes the length of a tick.

```
struct Length
```

## Topics

### Type Properties

[`static var automatic: AxisTick.Length`](/documentation/Charts/AxisTick/Length/automatic)

Automatically determines the tick length.

[`static var label: AxisTick.Length`](/documentation/Charts/AxisTick/Length/label)

Describes a tick that extends to its associated label.

[`static var longestLabel: AxisTick.Length`](/documentation/Charts/AxisTick/Length/longestLabel)

Describes a tick that extends to the longest label on the axis.

### Type Methods

[`static func label(extendPastBy: CGFloat) -> AxisTick.Length`](/documentation/Charts/AxisTick/Length/label(extendPastBy:))

Describes a tick that extends to its associated label, with the given additional length.

[`static func longestLabel(extendPastBy: CGFloat) -> AxisTick.Length`](/documentation/Charts/AxisTick/Length/longestLabel(extendPastBy:))

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

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)