Mode

public struct Mode : OptionSet, Encodable

Determines the drawing mode for this scatter trace.

If the provided mode includes text then the text elements appear at the coordinates. Otherwise, the text elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is lines+markers. Otherwise, lines.

Note

Used by Scatter<XData, YData>.mode, ScatterTernary<AData, BData, CData>.mode, Scatter3D<XData, YData, ZData>.mode, ScatterGeo<CoordinateData, LocationsData>.mode, ScatterGL<XData, YData>.mode, ScatterMapbox<CoordinateData>.mode, ScatterCarpet<AData, BData>.mode, ScatterPolar<RData, ThetaData>.mode, ScatterPolarGL<RData, ThetaData>.mode.
  • Declaration

    Swift

    public let rawValue: Int
  • Undocumented

    Declaration

    Swift

    public static var lines: Mode { get }
  • Undocumented

    Declaration

    Swift

    public static var markers: Mode { get }
  • Undocumented

    Declaration

    Swift

    public static var text: Mode { get }
  • Undocumented

    Declaration

    Swift

    public static var none: Mode { get }
  • Declaration

    Swift

    public init(rawValue: Int)
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws