StackedBarDataPoint

public struct StackedBarDataPoint : CTMultiBarDataPoint

Data for a single stacked chart data point.

  • id

    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 stacked 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.

  • ID

    Declaration

    Swift

    public typealias ID = UUID