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

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

## Declaration

```swift
nonisolated init<Data, Y>(_ data: Data, x: PlottableProjection<AreaPlot<Content>.DataElement, some Plottable>, yStart: PlottableProjection<AreaPlot<Content>.DataElement, Y>, yEnd: PlottableProjection<AreaPlot<Content>.DataElement, Y>, series: PlottableProjection<AreaPlot<Content>.DataElement, some Plottable>) where Content == VectorizedAreaPlotContent<Data>, Data : RandomAccessCollection, Y : 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(_:xStart:xEnd:y:series:)](charts/areaplot/init(_:xstart:xend:y:series:).md)
- [init(_:x:yStart:yEnd:)](charts/areaplot/init(_:x:ystart:yend:).md)
