ChartMetadata

public struct ChartMetadata

Data model for the chart’s metadata

Contains the Title, Subtitle and colour information for them.

  • The charts title

    Declaration

    Swift

    public var title: String
  • Font of the title

    Declaration

    Swift

    public var titleFont: Font
  • Color of the title

    Declaration

    Swift

    public var titleColour: Color
  • The charts subtitle

    Declaration

    Swift

    public var subtitle: String
  • Font of the subtitle

    Declaration

    Swift

    public var subtitleFont: Font
  • Color of the subtitle

    Declaration

    Swift

    public var subtitleColour: Color
  • Model to hold the metadata for the chart.

    Declaration

    Swift

    public init(
        title: String = "",
        subtitle: String = "",
        titleFont: Font = .title3,
        titleColour: Color = Color.primary,
        subtitleFont: Font = .subheadline,
        subtitleColour: Color = Color.primary
    )

    Parameters

    title

    The charts title.

    subtitle

    The charts subtitle.

    titleFont

    Font of the title.

    titleColour

    Color of the title.

    subtitleFont

    Font of the subtitle.

    subtitleColour

    Color of the subtitle.