ChartLabelAttributes

public class ChartLabelAttributes : ObservableObject, Identifiable, NSCopying
extension ChartLabelAttributes: Equatable
extension ChartLabelAttributes: CustomStringConvertible

Undocumented

  • Text color for the label.

    Declaration

    Swift

    @Published
    public var color: Color { get set }
  • Size of the label font in points.

    Declaration

    Swift

    @PublishedConstrainedValue
    public var fontSize: CGFloat { get set }
  • Specifies how far from the axis labels should be rendered.

    Declaration

    Swift

    @PublishedConstrainedValue
    public var offset: CGFloat { get set }
  • True when the associated label(s) should be hidden.

    Declaration

    Swift

    @Published
    public var isHidden: Bool { get set }
  • Font for the label, has higher priority than fontSize.

    Declaration

    Swift

    @Published
    public var font: Font? { get set }
  • Backgroundcolor for the label.

    Declaration

    Swift

    @Published
    public var backgroundColor: Color? { get set }
  • id

    Declaration

    Swift

    public let id: UUID
  • The constructor with color, fontSize, offset, isHidden and backgroundColor

    Declaration

    Swift

    public init(color: Color = .preferredColor(.tertiaryLabel),
                fontSize: Double = 12,
                offset: Double = 0,
                isHidden: Bool = false,
                backgroundColor: Color? = nil)
  • The constructor with color, font, offset, isHidden and backgroundColor

    Declaration

    Swift

    public init(color: Color = .preferredColor(.tertiaryLabel),
                font: Font?,
                offset: Double = 0,
                isHidden: Bool = false,
                backgroundColor: Color? = nil)
  • Undocumented

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any
  • Declaration

    Swift

    public static func == (lhs: ChartLabelAttributes, rhs: ChartLabelAttributes) -> Bool
  • Declaration

    Swift

    public var description: String { get }