BarChartDataPoint
public struct BarChartDataPoint : CTStandardBarDataPoint
Data for a single bar chart data point.
Colour can be solid or gradient.
-
Declaration
Swift
public let id: UUID -
Declaration
Swift
public var value: Double -
Declaration
Swift
public var xAxisLabel: String? -
Declaration
Swift
public var description: String? -
Declaration
Swift
public var date: Date? -
Declaration
Swift
public var colour: ColourStyle -
Declaration
Swift
public var legendTag: String
-
Data model for a single data point with colour for use with a bar chart.
Declaration
Swift
public init( value: Double, xAxisLabel: String? = nil, description: String? = nil, date: Date? = nil, colour: ColourStyle = ColourStyle(colour: .red) )Parameters
valueValue of the data point.
xAxisLabelLabel that can be shown on the X axis.
descriptionA longer label that can be shown on touch input.
dateDate of the data point if any data based calculations are required.
colourColour styling for the fill.
-
Declaration
Swift
public typealias ID = UUID