Delta

public struct Delta : Encodable

Undocumented

  • Sets the reference value to compute the delta.

    By default, it is set to the current value.

    Declaration

    Swift

    public var reference: Double?
  • Sets the position of delta with respect to the number.

    See more

    Declaration

    Swift

    public enum Position : String, Encodable
  • Sets the position of delta with respect to the number.

    Declaration

    Swift

    public var position: Position?
  • Show relative change

    Declaration

    Swift

    public var relative: Bool?
  • Sets the value formatting rule using d3 formatting mini-language which is similar to those of Python.

    See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format

    Declaration

    Swift

    public var valueFormat: String?
  • Undocumented

    See more

    Declaration

    Swift

    public struct Increasing : Encodable
  • Undocumented

    Declaration

    Swift

    public var increasing: Increasing?
  • Undocumented

    See more

    Declaration

    Swift

    public struct Decreasing : Encodable
  • Undocumented

    Declaration

    Swift

    public var decreasing: Decreasing?
  • Set the font used to display the delta

    Declaration

    Swift

    public var font: Font?
  • Creates Delta object with specified properties.

    Declaration

    Swift

    public init(reference: Double? = nil, position: Position? = nil, relative: Bool? = nil,
            valueFormat: String? = nil, increasing: Increasing? = nil, decreasing: Decreasing? = nil, font:
            Font? = nil)

    Parameters

    reference

    Sets the reference value to compute the delta.

    position

    Sets the position of delta with respect to the number.

    relative

    Show relative change

    valueFormat

    Sets the value formatting rule using d3 formatting mini-language which is similar to those of Python.

    increasing

    decreasing

    font

    Set the font used to display the delta