LineDataSet
public struct LineDataSet : CTLineChartDataSet, DataFunctionsProtocol
Data set for a single line
Contains information specific to each line within the chart .
-
Declaration
Swift
public let id: UUID
-
Declaration
Swift
public var dataPoints: [LineChartDataPoint]
-
Declaration
Swift
public var legendTitle: String
-
Declaration
Swift
public var pointStyle: PointStyle
-
Declaration
Swift
public var style: LineStyle
-
Initialises a data set for a line in a Line Chart.
Declaration
Swift
public init( dataPoints: [LineChartDataPoint], legendTitle: String = "", pointStyle: PointStyle = PointStyle(), style: LineStyle = LineStyle() )
Parameters
dataPoints
Array of elements.
legendTitle
Label for the data in legend.
pointStyle
Styling information for the data point markers.
style
Styling for how the line will be draw in.
-
Declaration
Swift
public typealias ID = UUID
-
Declaration
Swift
public typealias Styling = LineStyle