RangedBarDataPoint

public struct RangedBarDataPoint : CTRangedBarDataPoint

Data for a single ranged bar chart data point.

  • id

    Declaration

    Swift

    public let id: UUID
  • Declaration

    Swift

    public var upperValue: Double
  • Declaration

    Swift

    public var lowerValue: 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 ranged bar chart.

    Declaration

    Swift

    public init(
        lowerValue: Double,
        upperValue: Double,
        xAxisLabel: String? = nil,
        description: String? = nil,
        date: Date? = nil,
        colour: ColourStyle = ColourStyle(colour: .red)
    )

    Parameters

    lowerValue

    Value of the lower range of the data point.

    upperValue

    Value of the upper range of the data point.

    xAxisLabel

    Label that can be shown on the X axis.

    description

    A longer label that can be shown on touch input.

    date

    Date of the data point if any data based calculations are required.

    colour

    Colour styling for the fill.

  • ID

    Declaration

    Swift

    public typealias ID = UUID