<!--
{
  "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(_:xStart:xEnd:y:)-4yxo8",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift Charts",
      "Charts"
    ],
    "preciseIdentifier" : "s:6Charts8RulePlotV_6xStart4xEnd1yACyAA010VectorizedbC7ContentVyqd__GGqd___14CoreFoundation7CGFloatVSgAnA19PlottableProjectionVy7ElementQyd__qd_0_GtcAIRszSkRd__AA0K0Rd_0_r0_lufc"
  },
  "title" : "init(_:xStart:xEnd:y:)"
}
-->

# init(_:xStart:xEnd:y:)

```
nonisolated init<Data>(_ data: Data, xStart: CGFloat? = nil, xEnd: CGFloat? = nil, y: PlottableProjection<RulePlot<Content>.DataElement, some Plottable>) 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)