Title

public struct Title : Encodable

Undocumented

  • Sets the title of the chart.

    If it is empty, no title is displayed. Note that before the existence of title.text, the title’s contents used to be defined as the title attribute itself. This behavior has been deprecated.

    Declaration

    Swift

    public var text: String?
  • Sets the font used for title.

    Note that the title’s font used to be set by the now deprecated titlefont attribute.

    Declaration

    Swift

    public var font: VariableFont?
  • Specifies the location of the title.

    Note that the title’s position used to be set by the now deprecated titleposition attribute.

    See more

    Declaration

    Swift

    public enum Position : String, Encodable
  • Specifies the location of the title.

    Note that the title’s position used to be set by the now deprecated titleposition attribute.

    Declaration

    Swift

    public var position: Position?
  • Creates Title object with specified properties.

    Declaration

    Swift

    public init(text: String? = nil, font: VariableFont? = nil, position: Position? = nil)

    Parameters

    text

    Sets the title of the chart.

    font

    Sets the font used for title.

    position

    Specifies the location of the title.