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

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

Creates an area mark that plots values with a vertical interval and associates it with the specified series.

## Declaration

```swift
nonisolated init<X, Y, S>(x: PlottableValue<X>, yStart: PlottableValue<Y>, yEnd: PlottableValue<Y>, series: PlottableValue<S>) where X : Plottable, Y : Plottable, S : Plottable
```

## Parameters

- `x`: The horizontal position for the mark.
- `yStart`: The starting vertical position for the mark.
- `yEnd`: The ending vertical position for the mark.
- `series`: A series to associate the mark with.

## Discussion

Discussion The initializer behaves like init(x:yStart:yEnd:), except that you can indicate which region each interval belongs to by providing a value for the series input. This enables you to plot more than one region on a single chart. To plot a series of values that have a horizontal interval, use init(xStart:xEnd:y:series:) instead.

## See Also

### Creating a range area chart

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