Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Sources/SwiftUICharts/Charts/LineChart/LineChart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ import SwiftUI
/// A type of chart that displays a line connecting the data points
public struct LineChart: View, ChartBase {
public var chartData = ChartData()

public var curvedLines: Bool
@EnvironmentObject var data: ChartData
@EnvironmentObject var style: ChartStyle

/// The content and behavior of the `LineChart`.
///
///
public var body: some View {
Line(chartData: data, style: style)
Line(chartData: data, style: style, curvedLines: curvedLines)
}

public init() {}
public init(curvedLines: Bool = true) {
self.curvedLines = curvedLines
}
}