---
title: "init(_:x:yStart:yEnd:)"
framework: charts
role: symbol
role_heading: Initializer
path: "charts/ruleplot/init(_:x:ystart:yend:)-6ts7e"
---

# init(_:x:yStart:yEnd:)

## Declaration

```swift
nonisolated init<Data>(_ data: Data, x: PlottableProjection<RulePlot<Content>.DataElement, some Plottable>, yStart: KeyPath<RulePlot<Content>.DataElement, CGFloat>, yEnd: KeyPath<RulePlot<Content>.DataElement, CGFloat>) where Content == VectorizedRulePlotContent<Data>, Data : RandomAccessCollection
```

## See Also

### Plotting rules from a collection

- [init(_:x:yStart:yEnd:)](charts/ruleplot/init(_:x:ystart:yend:)-13wts.md)
- [init(_:x:yStart:yEnd:)](charts/ruleplot/init(_:x:ystart:yend:)-3fig9.md)
- [init(_:x:yStart:yEnd:)](charts/ruleplot/init(_:x:ystart:yend:)-8b2lx.md)
- [init(_:x:yStart:yEnd:)](charts/ruleplot/init(_:x:ystart:yend:)-zxo0.md)
- [init(_:xStart:xEnd:y:)](charts/ruleplot/init(_:xstart:xend:y:)-3dsvn.md)
- [init(_:xStart:xEnd:y:)](charts/ruleplot/init(_:xstart:xend:y:)-4yxo8.md)
- [init(_:xStart:xEnd:y:)](charts/ruleplot/init(_:xstart:xend:y:)-54gxx.md)
- [init(_:xStart:xEnd:y:)](charts/ruleplot/init(_:xstart:xend:y:)-8ehr7.md)
- [init(_:xStart:xEnd:y:)](charts/ruleplot/init(_:xstart:xend:y:)-hx5a.md)
