<!--
{
  "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/BarPlot/init(_:xStart:xEnd:y:height:stacking:)-16tou",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Swift Charts",
      "Charts"
    ],
    "preciseIdentifier" : "s:6Charts7BarPlotV_6xStart4xEnd1y6height8stackingACyAA010VectorizedbC7ContentVyqd__GGqd___s7KeyPathCy7ElementQyd__14CoreFoundation7CGFloatVGAtA19PlottableProjectionVyAPqd_0_GAA14MarkDimensionsVyAPGAA0R14StackingMethodVtcAKRszSkRd__AA0P0Rd_0_r0_lufc"
  },
  "title" : "init(_:xStart:xEnd:y:height:stacking:)"
}
-->

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

```
nonisolated init<Data>(_ data: Data, xStart: KeyPath<BarPlot<Content>.DataElement, CGFloat>, xEnd: KeyPath<BarPlot<Content>.DataElement, CGFloat>, y: PlottableProjection<BarPlot<Content>.DataElement, some Plottable>, height: MarkDimensions<BarPlot<Content>.DataElement> = .automatic, stacking: MarkStackingMethod = .standard) where Content == VectorizedBarPlotContent<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)