<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Charts",
  "identifier" : "/documentation/Charts/MajorValueAlignment",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift Charts"
    ],
    "preciseIdentifier" : "s:6Charts19MajorValueAlignmentV"
  },
  "title" : "MajorValueAlignment"
}
-->

# MajorValueAlignment

A type that defines how the valigned aligned chart scroll target behavior aligns to major values on swipe.

```
struct MajorValueAlignment<Value> where Value : Plottable
```

## Topics

### Type Properties

[`static var page: MajorValueAlignment<Value>`](/documentation/Charts/MajorValueAlignment/page)

Automatically set the major aligment unit to be the size of the visible domain which is equivalent to a page.

### Type Methods

[`static func matching(DateComponents) -> MajorValueAlignment<Value>`](/documentation/Charts/MajorValueAlignment/matching(_:))

Align to calendar components.

[`static func unit(Value) -> MajorValueAlignment<Value>`](/documentation/Charts/MajorValueAlignment/unit(_:))

Align to units.

---

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)