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

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

```
nonisolated init<Data>(_ data: Data, xStart: KeyPath<RectanglePlot<Content>.DataElement, CGFloat>, xEnd: KeyPath<RectanglePlot<Content>.DataElement, CGFloat>, yStart: KeyPath<RectanglePlot<Content>.DataElement, CGFloat>, yEnd: KeyPath<RectanglePlot<Content>.DataElement, CGFloat>) where Content == VectorizedRectanglePlotContent<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)