Polar

public final class Polar : Encodable, SubplotAxis

Undocumented

  • uid

    Unique identifier of the axis.

    Declaration

    Swift

    public var uid: UInt
  • Undocumented

    Declaration

    Swift

    public var domain: Domain?
  • Sets angular span of this polar subplot with two angles (in degrees).

    Sector are assumed to be spanned in the counterclockwise direction with 0 corresponding to rightmost limit of the polar subplot.

    Declaration

    Swift

    public var sector: InfoArray?
  • Sets the fraction of the radius to cut out of the polar subplot.

    Declaration

    Swift

    public var hole: Double?
  • Set the background color of the subplot

    Declaration

    Swift

    public var backgroundColor: Color?
  • Undocumented

    See more

    Declaration

    Swift

    public struct RadialAxis : Encodable
  • Undocumented

    Declaration

    Swift

    public var radialAxis: RadialAxis?
  • Undocumented

    See more

    Declaration

    Swift

    public struct AngularAxis : Encodable
  • Undocumented

    Declaration

    Swift

    public var angularAxis: AngularAxis?
  • Determines if the radial axis grid lines and angular axis line are drawn as circular sectors or as linear (polygon) sectors.

    Has an effect only when the angular axis has type category. Note that radialaxis.angle is snapped to the angle of the closest vertex when gridshape is circular (so that radial axis scale is the same as the data scale).

    See more

    Declaration

    Swift

    public enum GridShape : String, Encodable
  • Determines if the radial axis grid lines and angular axis line are drawn as circular sectors or as linear (polygon) sectors.

    Has an effect only when the angular axis has type category. Note that radialaxis.angle is snapped to the angle of the closest vertex when gridshape is circular (so that radial axis scale is the same as the data scale).

    Declaration

    Swift

    public var gridShape: GridShape?
  • Controls persistence of user-driven changes in axis attributes, if not overridden in the individual axes.

    Defaults to layout.uirevision.

    Declaration

    Swift

    public var uiRevision: Anything?
  • Shared and preset default axis reference used to initialize layout and all traces.

    Declaration

    Swift

    public static let preset: Polar
  • Creates Polar object with specified properties.

    Declaration

    Swift

    public init(uid: UInt = UInt.random(in: 2...UInt.max), domain: Domain? = nil, sector: InfoArray?
            = nil, hole: Double? = nil, backgroundColor: Color? = nil, radialAxis: RadialAxis? = nil,
            angularAxis: AngularAxis? = nil, gridShape: GridShape? = nil, uiRevision: Anything? = nil)

    Parameters

    uid

    Unique identifier of the axis.

    domain

    sector

    Sets angular span of this polar subplot with two angles (in degrees).

    hole

    Sets the fraction of the radius to cut out of the polar subplot.

    backgroundColor

    Set the background color of the subplot

    radialAxis

    angularAxis

    gridShape

    Determines if the radial axis grid lines and angular axis line are drawn as circular sectors or as linear (polygon) sectors.

    uiRevision

    Controls persistence of user-driven changes in axis attributes, if not overridden in the individual axes.