<!--
{
  "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/RectanglePlot/init(_:xStart:xEnd:yStart:yEnd:)-6d8yb",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift Charts",
      "Charts"
    ],
    "preciseIdentifier" : "s:6Charts13RectanglePlotV_6xStart4xEnd01yD001yE0ACyAA010VectorizedbC7ContentVyqd__GGqd___14CoreFoundation7CGFloatVSgAoA19PlottableProjectionVy7ElementQyd__qd_0_GATtcAJRszSkRd__AA0K0Rd_0_r0_lufc"
  },
  "title" : "init(_:xStart:xEnd:yStart:yEnd:)"
}
-->

# init(_:xStart:xEnd:yStart:yEnd:)

```
nonisolated init<Data, Y>(_ data: Data, xStart: CGFloat? = nil, xEnd: CGFloat? = nil, yStart: PlottableProjection<RectanglePlot<Content>.DataElement, Y>, yEnd: PlottableProjection<RectanglePlot<Content>.DataElement, Y>) where Content == VectorizedRectanglePlotContent<Data>, Data : RandomAccessCollection, Y : Plottable
```

---

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)