init(x:yStart:yEnd:domain:function:)
Creates a mark that fills the area between two functions (yStart, yEnd) = f(x).
Declaration
nonisolated init<S1, S2, S3>(x: S1, yStart: S2, yEnd: S3, domain: ClosedRange<Double>? = nil, function: @escaping @Sendable (Double) -> (yStart: Double, yEnd: Double)) where S1 : StringProtocol, S2 : StringProtocol, S3 : StringProtocolDiscussion
Parameters:
x: The localized string key for the x label.
yStart: The localized string key for the start label.
yEnd: The localized string key for the end label.
domain: The domain of x. If set to
nil, the domain of the chart’s x scale will be used.function: The function to graph. Returns a tuple of (yStart: yStart, yEnd: yEnd).