* feat: new protocol for chained functions, and added support for explicit Y ranges. X coming as well * feat: add new axis interface (#253)
17 lines
574 B
Swift
17 lines
574 B
Swift
import SwiftUI
|
|
|
|
struct LineBackgroundShapeView: View {
|
|
var chartData: ChartData
|
|
var geometry: GeometryProxy
|
|
var backgroundColor: ColorGradient
|
|
|
|
var body: some View {
|
|
LineBackgroundShape(data: chartData.normalisedData)
|
|
.fill(LinearGradient(gradient: Gradient(colors: [backgroundColor.startColor,
|
|
backgroundColor.endColor]),
|
|
startPoint: .bottom,
|
|
endPoint: .top))
|
|
.toStandardCoordinateSystem()
|
|
}
|
|
}
|