init(x:y:domain:function:)
Creates a mark that fills the area between zero and the given function.
Declaration
nonisolated init<S1, S2>(x: S1, y: S2, domain: ClosedRange<Double>? = nil, function: @escaping @Sendable (Double) -> Double) where S1 : StringProtocol, S2 : StringProtocolDiscussion
Parameters:
x: The localized string key for the x label.
y: The localized string key for the y 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..