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