---
title: "init(_:xStart:xEnd:yStart:yEnd:)"
framework: charts
role: symbol
role_heading: Initializer
path: "charts/rectangleplot/init(_:xstart:xend:ystart:yend:)-6uuk4"
---

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

## Declaration

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

## See Also

### Plotting rectangles from a collection

- [init(_:x:y:width:height:)](charts/rectangleplot/init(_:x:y:width:height:).md)
- [init(_:x:yStart:yEnd:width:)](charts/rectangleplot/init(_:x:ystart:yend:width:)-93op1.md)
- [init(_:x:yStart:yEnd:width:)](charts/rectangleplot/init(_:x:ystart:yend:width:)-nnvk.md)
- [init(_:x:yStart:yEnd:width:)](charts/rectangleplot/init(_:x:ystart:yend:width:)-12u1b.md)
- [init(_:xStart:xEnd:y:height:)](charts/rectangleplot/init(_:xstart:xend:y:height:)-51nra.md)
- [init(_:xStart:xEnd:y:height:)](charts/rectangleplot/init(_:xstart:xend:y:height:)-8s17v.md)
- [init(_:xStart:xEnd:y:height:)](charts/rectangleplot/init(_:xstart:xend:y:height:)-15ish.md)
- [init(_:xStart:xEnd:yStart:yEnd:)](charts/rectangleplot/init(_:xstart:xend:ystart:yend:)-46wi0.md)
- [init(_:xStart:xEnd:yStart:yEnd:)](charts/rectangleplot/init(_:xstart:xend:ystart:yend:)-4g377.md)
- [init(_:xStart:xEnd:yStart:yEnd:)](charts/rectangleplot/init(_:xstart:xend:ystart:yend:)-6d8yb.md)
- [init(_:xStart:xEnd:yStart:yEnd:)](charts/rectangleplot/init(_:xstart:xend:ystart:yend:)-741lz.md)
- [init(_:xStart:xEnd:yStart:yEnd:)](charts/rectangleplot/init(_:xstart:xend:ystart:yend:)-ir9o.md)
