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
titleThe charts title.
subtitleThe charts subtitle.
titleFontFont of the title.
titleColourColor of the title.
subtitleFontFont of the subtitle.
subtitleColourColor of the subtitle.