---
title: "init(_:x:y:series:stacking:)"
framework: charts
role: symbol
role_heading: Initializer
path: "charts/areaplot/init(_:x:y:series:stacking:)"
---

# init(_:x:y:series:stacking:)

## Declaration

```swift
nonisolated init<Data>(_ data: Data, x: PlottableProjection<AreaPlot<Content>.DataElement, some Plottable>, y: PlottableProjection<AreaPlot<Content>.DataElement, some Plottable>, series: PlottableProjection<AreaPlot<Content>.DataElement, some Plottable>, stacking: MarkStackingMethod = .standard) where Content == VectorizedAreaPlotContent<Data>, Data : RandomAccessCollection
```

## See Also

### Plotting areas from a collection

- [init(_:x:y:stacking:)](charts/areaplot/init(_:x:y: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)
- [init(_:x:yStart:yEnd:series:)](charts/areaplot/init(_:x:ystart:yend:series:).md)
