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

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

## Declaration

```swift
nonisolated init<Data>(_ data: Data, x: PlottableProjection<LinePlot<Content>.DataElement, some Plottable>, y: PlottableProjection<LinePlot<Content>.DataElement, some Plottable>, series: PlottableProjection<LinePlot<Content>.DataElement, some Plottable>) where Content == VectorizedLinePlotContent<Data>, Data : RandomAccessCollection
```

## See Also

### Plotting lines from a collection

- [init(_:x:y:)](charts/lineplot/init(_:x:y:).md)
