CTDataPointBaseProtocol

public protocol CTDataPointBaseProtocol : Hashable, Identifiable

Protocol to set base configuration for data points.

  • id

    Undocumented

    Declaration

    Swift

    var id: ID { get }
  • A label that can be displayed on touch input

    It can be displayed in a floating box that tracks the users input location or placed in the header.

    Declaration

    Swift

    var description: String? { get set }
  • Date can be used for optionally performing additional calculations.

    Declaration

    Swift

    var date: Date? { get set }
  • Internal property that has to be exposed publicly through the protocol.

    This is used for displaying legends outside of the .legends() view modifier.

    Do Not Use.

    Declaration

    Swift

    var legendTag: String { get set }
  • Gets the relevant value(s) from the data point.

    Declaration

    Swift

    func valueAsString(specifier: String, formatter: NumberFormatter?) -> String

    Parameters

    specifier

    Specifier

    Return Value

    Value as a string.

Data Point

  • wrappedDescription Extension method

    Unwraps description

    Declaration

    Swift

    public var wrappedDescription: String { get }