GroupedBarDataPoint
public struct GroupedBarDataPoint : CTMultiBarDataPoint
Data for a single grouped bar chart data point.
-
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 group: GroupingData
-
Declaration
Swift
public var legendTag: String
-
Data model for a single data point with colour info for use with a grouped bar chart.
Declaration
Swift
public init( value: Double, description: String? = nil, date: Date? = nil, group: GroupingData )
Parameters
value
Value of the data point.
description
A longer label that can be shown on touch input.
date
Date of the data point if any data based calculations are required.
group
Group data informs the data models how the data point are linked.
-
Declaration
Swift
public typealias ID = UUID