TraceOrder

public struct TraceOrder : OptionSet, Encodable

Determines the order at which the legend items are displayed.

If normal, the items are displayed top-to-bottom in the same order as the input data. If reversed, the items are displayed in the opposite order as normal. If grouped, the items are displayed in groups (when a trace legendgroup is provided). if grouped+reversed, the items are displayed in the opposite order as grouped.

  • Declaration

    Swift

    public let rawValue: Int
  • Undocumented

    Declaration

    Swift

    public static var reversed: TraceOrder { get }
  • Undocumented

    Declaration

    Swift

    public static var grouped: TraceOrder { get }
  • Undocumented

    Declaration

    Swift

    public static var normal: TraceOrder { get }
  • Declaration

    Swift

    public init(rawValue: Int)
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws