Contents

init(x:yStart:yEnd:series:)

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

Declaration

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

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