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

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

## Declaration

```swift
nonisolated init<Data, X>(_ data: Data, xStart: PlottableProjection<AreaPlot<Content>.DataElement, X>, xEnd: PlottableProjection<AreaPlot<Content>.DataElement, X>, y: PlottableProjection<AreaPlot<Content>.DataElement, some Plottable>, series: PlottableProjection<AreaPlot<Content>.DataElement, some Plottable>) where Content == VectorizedAreaPlotContent<Data>, Data : RandomAccessCollection, X : Plottable
```

## See Also

### Plotting areas from a collection

- [init(_:x:y:stacking:)](charts/areaplot/init(_:x:y:stacking:).md)
- [init(_:x:y:series:stacking:)](charts/areaplot/init(_:x:y:series:stacking:).md)
- [init(_:xStart:xEnd:y:)](charts/areaplot/init(_:xstart:xend:y:).md)
- [init(_:x:yStart:yEnd:)](charts/areaplot/init(_:x:ystart:yend:).md)
- [init(_:x:yStart:yEnd:series:)](charts/areaplot/init(_:x:ystart:yend:series:).md)
