<!--
{
  "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/ValueAlignedChartScrollTargetBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift Charts"
    ],
    "preciseIdentifier" : "s:6Charts37ValueAlignedChartScrollTargetBehaviorV"
  },
  "title" : "ValueAlignedChartScrollTargetBehavior"
}
-->

# ValueAlignedChartScrollTargetBehavior

A scroll target behavior that aligns to values spaced at regular intervals along the scrollable axes.

```
struct ValueAlignedChartScrollTargetBehavior
```

## Topics

### Initializers

[`init(matching: DateComponents, majorAlignment: MajorValueAlignment<Date>?, limitBehavior: ValueAlignedLimitBehavior)`](/documentation/Charts/ValueAlignedChartScrollTargetBehavior/init(matching:majorAlignment:limitBehavior:))

Creates a scroll target behavior that aligns to values spaced at regular intervals along the scrollable axes.

[`init<T>(unit: T, majorAlignment: MajorValueAlignment<T>?, limitBehavior: ValueAlignedLimitBehavior)`](/documentation/Charts/ValueAlignedChartScrollTargetBehavior/init(unit:majorAlignment:limitBehavior:))

Creates a scroll target behavior that aligns to values spaced at regular intervals along the scrollable axes.

[`init(xMatching: DateComponents, yMatching: DateComponents, xMajorAlignment: MajorValueAlignment<Date>?, yMajorAlignment: MajorValueAlignment<Date>?, limitBehavior: ValueAlignedLimitBehavior)`](/documentation/Charts/ValueAlignedChartScrollTargetBehavior/init(xMatching:yMatching:xMajorAlignment:yMajorAlignment:limitBehavior:))

Creates a scroll target behavior that aligns to values spaced at regular intervals along the scrollable axes.

[`init<Y>(xMatching: DateComponents, yUnit: Y, xMajorAlignment: MajorValueAlignment<Date>?, yMajorAlignment: MajorValueAlignment<Y>?, limitBehavior: ValueAlignedLimitBehavior)`](/documentation/Charts/ValueAlignedChartScrollTargetBehavior/init(xMatching:yUnit:xMajorAlignment:yMajorAlignment:limitBehavior:))

Creates a scroll target behavior that aligns to values spaced at regular intervals along the scrollable axes.

[`init<X>(xUnit: X, yMatching: DateComponents, xMajorAlignment: MajorValueAlignment<X>?, yMajorAlignment: MajorValueAlignment<Date>?, limitBehavior: ValueAlignedLimitBehavior)`](/documentation/Charts/ValueAlignedChartScrollTargetBehavior/init(xUnit:yMatching:xMajorAlignment:yMajorAlignment:limitBehavior:))

Creates a scroll target behavior that aligns to values spaced at regular intervals along the scrollable axes.

[`init<X, Y>(xUnit: X, yUnit: Y, xMajorAlignment: MajorValueAlignment<X>?, yMajorAlignment: MajorValueAlignment<Y>?, limitBehavior: ValueAlignedLimitBehavior)`](/documentation/Charts/ValueAlignedChartScrollTargetBehavior/init(xUnit:yUnit:xMajorAlignment:yMajorAlignment:limitBehavior:))

Creates a scroll target behavior that aligns to values spaced at regular intervals along the scrollable axes.

## Relationships

### Conforms To

[`ScrollTargetBehavior`](/documentation/SwiftUI/ScrollTargetBehavior)

[`ChartScrollTargetBehavior`](/documentation/Charts/ChartScrollTargetBehavior)

---

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)