<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Charts",
  "identifier" : "/documentation/Charts/RulePlot/init(_:x:yStart:yEnd:)-6ts7e",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift Charts",
      "Charts"
    ],
    "preciseIdentifier" : "s:6Charts8RulePlotV_1x6yStart4yEndACyAA010VectorizedbC7ContentVyqd__GGqd___AA19PlottableProjectionVy7ElementQyd__qd_0_Gs7KeyPathCyAN14CoreFoundation7CGFloatVGAUtcAIRszSkRd__AA0H0Rd_0_r0_lufc"
  },
  "title" : "init(_:x:yStart:yEnd:)"
}
-->

# init(_:x:yStart:yEnd:)

```
nonisolated init<Data>(_ data: Data, x: PlottableProjection<RulePlot<Content>.DataElement, some Plottable>, yStart: KeyPath<RulePlot<Content>.DataElement, CGFloat>, yEnd: KeyPath<RulePlot<Content>.DataElement, CGFloat>) where Content == VectorizedRulePlotContent<Data>, Data : RandomAccessCollection
```

---

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)