* Starting on filling in documentation. * First pass on most/all files * more descriptions filled in * Some documentation but TBH the author would be better suited to explain how this works! * more basic stuff filled in * Add a description and bunch of discussion text for most of the view `body` declarations * more explanations Co-authored-by: Dan Wood <danwood@users.noreply.github.com>
19 lines
427 B
Swift
19 lines
427 B
Swift
import SwiftUI
|
|
|
|
/// A type of chart that displays a line connecting the data points
|
|
public struct LineChart: View, ChartBase {
|
|
public var chartData = ChartData()
|
|
|
|
@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)
|
|
}
|
|
|
|
public init() {}
|
|
}
|