---
title: "init(_:xStart:xEnd:y:height:)"
framework: charts
role: symbol
role_heading: Initializer
path: "charts/barplot/init(_:xstart:xend:y:height:)"
---

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

## Declaration

```swift
nonisolated init<Data, X>(_ data: Data, xStart: PlottableProjection<BarPlot<Content>.DataElement, X>, xEnd: PlottableProjection<BarPlot<Content>.DataElement, X>, y: PlottableProjection<BarPlot<Content>.DataElement, some Plottable>, height: MarkDimensions<BarPlot<Content>.DataElement> = .automatic) where Content == VectorizedBarPlotContent<Data>, Data : RandomAccessCollection, X : Plottable
```

## See Also

### Plotting bars from a collection

- [init(_:x:y:width:height:stacking:)](charts/barplot/init(_:x:y:width:height:stacking:).md)
- [init(_:x:yStart:yEnd:width:)](charts/barplot/init(_:x:ystart:yend:width:).md)
- [init(_:x:yStart:yEnd:width:stacking:)](charts/barplot/init(_:x:ystart:yend:width:stacking:)-2mtih.md)
- [init(_:x:yStart:yEnd:width:stacking:)](charts/barplot/init(_:x:ystart:yend:width:stacking:)-680hw.md)
- [init(_:xStart:xEnd:y:height:stacking:)](charts/barplot/init(_:xstart:xend:y:height:stacking:)-16tou.md)
- [init(_:xStart:xEnd:y:height:stacking:)](charts/barplot/init(_:xstart:xend:y:height:stacking:)-2x0yx.md)
- [init(_:xStart:xEnd:yStart:yEnd:)](charts/barplot/init(_:xstart:xend:ystart:yend:)-48su5.md)
- [init(_:xStart:xEnd:yStart:yEnd:)](charts/barplot/init(_:xstart:xend:ystart:yend:)-862wn.md)
- [init(_:xStart:xEnd:yStart:yEnd:)](charts/barplot/init(_:xstart:xend:ystart:yend:)-mtdv.md)
- [init(_:xStart:xEnd:yStart:yEnd:)](charts/barplot/init(_:xstart:xend:ystart:yend:)-raqh.md)
