Array

extension Array where Element == XAxis
extension Array where Element == YAxis
extension Array where Element == Ternary
extension Array where Element == Scene
extension Array where Element == Geo
extension Array where Element == Mapbox
extension Array where Element == Polar
extension Array where Element == ColorAxis
extension Array: Plotable where Element: Encodable

Available where Element == XAxis

  • Preset default axis’ customized with the most frequently used properties.

    Declaration

    Swift

    public static func preset(title: XAxis.Title? = nil, range: InfoArray? = nil, ticks: Ticks? =
            nil, tickAngle: Angle? = nil, showGrid: Bool? = nil, domain: InfoArray? = nil) -> [XAxis]

    Parameters

    title

    range

    Sets the range of this axis.

    ticks

    Determines whether ticks are drawn or not.

    tickAngle

    Sets the angle of the tick labels with respect to the horizontal.

    showGrid

    Determines whether or not grid lines are drawn.

    domain

    Sets the domain of this axis (in plot fraction).

  • preset(visible:color:title:type:autoTypeNumbers:autoRange:rangeMode:range:fixedRange:scaleAnchor:scaleRatio:constrain:constrainToward:matches:rangeBreaks:tickMode:numTicks:tick0:dTick:tickValues:tickText:ticks:ticksOn:tickLabelMode:tickLabelPosition:mirror:tickLength:tickWidth:tickColor:showTickLabels:autoMargin:showSpikes:spikeColor:spikeThickness:spikeDash:spikeMode:spikeSnap:tickFont:tickAngle:tickPrefix:showTickPrefix:tickSuffix:showTickSuffix:showExponent:exponentFormat:minExponent:separateThousands:tickFormat:tickFormatStops:hoverFormat:showLine:lineColor:lineWidth:showGrid:gridColor:gridWidth:zeroLine:zeroLineColor:zeroLineWidth:showDividers:dividerColor:dividerWidth:anchor:side:overlaying:layer:domain:position:categoryOrder:categoryArray:uiRevision:rangeSlider:rangeSelector:calendar:)

    Preset default axis’ customized with the specified properties.

    Declaration

    Swift

    public static func preset(visible: Bool? = nil, color: Color? = nil, title: XAxis.Title? = nil,
            type: XAxis.`Type`? = nil, autoTypeNumbers: AutoTypeNumbers? = nil, autoRange: AutoRange? = nil,
            rangeMode: RangeMode? = nil, range: InfoArray? = nil, fixedRange: Bool? = nil, scaleAnchor:
            XAxis.ScaleAnchor? = nil, scaleRatio: Double? = nil, constrain: XAxis.Constrain? = nil,
            constrainToward: XAxis.ConstrainToward? = nil, matches: XAxis.Matches? = nil, rangeBreaks:
            [XAxis.RangeBreak]? = nil, tickMode: TickMode? = nil, numTicks: Int? = nil, tick0: Anything? =
            nil, dTick: Anything? = nil, tickValues: [Double]? = nil, tickText: [Double]? = nil, ticks:
            Ticks? = nil, ticksOn: XAxis.TicksOn? = nil, tickLabelMode: XAxis.TickLabelMode? = nil,
            tickLabelPosition: XAxis.TickLabelPosition? = nil, mirror: Mirror? = nil, tickLength: Double? =
            nil, tickWidth: Double? = nil, tickColor: Color? = nil, showTickLabels: Bool? = nil, autoMargin:
            Bool? = nil, showSpikes: Bool? = nil, spikeColor: Color? = nil, spikeThickness: Double? = nil,
            spikeDash: String? = nil, spikeMode: XAxis.SpikeMode? = nil, spikeSnap: XAxis.SpikeSnap? = nil,
            tickFont: Font? = nil, tickAngle: Angle? = nil, tickPrefix: String? = nil, showTickPrefix:
            ShowTickPrefix? = nil, tickSuffix: String? = nil, showTickSuffix: ShowTickSuffix? = nil,
            showExponent: ShowExponent? = nil, exponentFormat: ExponentFormat? = nil, minExponent: Double? =
            nil, separateThousands: Bool? = nil, tickFormat: String? = nil, tickFormatStops:
            [TickFormatStop]? = nil, hoverFormat: String? = nil, showLine: Bool? = nil, lineColor: Color? =
            nil, lineWidth: Double? = nil, showGrid: Bool? = nil, gridColor: Color? = nil, gridWidth:
            Double? = nil, zeroLine: Bool? = nil, zeroLineColor: Color? = nil, zeroLineWidth: Double? = nil,
            showDividers: Bool? = nil, dividerColor: Color? = nil, dividerWidth: Double? = nil, anchor:
            XAxis.Anchor? = nil, side: XAxis.Side? = nil, overlaying: XAxis.Overlaying? = nil, layer:
            AxisLayer? = nil, domain: InfoArray? = nil, position: Double? = nil, categoryOrder:
            CategoryOrder? = nil, categoryArray: [Double]? = nil, uiRevision: Anything? = nil, rangeSlider:
            XAxis.RangeSlider? = nil, rangeSelector: XAxis.RangeSelector? = nil, calendar: Calendar? = nil)
            -> [XAxis]

    Parameters

    visible

    A single toggle to hide the axis while preserving interaction like dragging.

    color

    Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors.

    title

    type

    Sets the axis type.

    autoTypeNumbers

    Using strict a numeric string in trace data is not converted to a number.

    autoRange

    Determines whether or not the range of this axis is computed in relation to the input data.

    rangeMode

    If normal, the range is computed in relation to the extrema of the input data.

    range

    Sets the range of this axis.

    fixedRange

    Determines whether or not this axis is zoom-able.

    scaleAnchor

    If set to another axis id (e.g.

    scaleRatio

    If this axis is linked to another by scaleanchor, this determines the pixel to unit scale ratio.

    constrain

    If this axis needs to be compressed (either due to its own scaleanchor and scaleratio or those of the other axis), determines how that happens: by increasing the range, or by decreasing the domain.

    constrainToward

    If this axis needs to be compressed (either due to its own scaleanchor and scaleratio or those of the other axis), determines which direction we push the originally specified plot area.

    matches

    If set to another axis id (e.g.

    rangeBreaks

    tickMode

    Sets the tick mode for this axis.

    numTicks

    Specifies the maximum number of ticks for the particular axis.

    tick0

    Sets the placement of the first tick on this axis.

    dTick

    Sets the step in-between ticks on this axis.

    tickValues

    Sets the values at which ticks on this axis appear.

    tickText

    Sets the text displayed at the ticks position via tickvals.

    ticks

    Determines whether ticks are drawn or not.

    ticksOn

    Determines where ticks and grid lines are drawn with respect to their corresponding tick labels.

    tickLabelMode

    Determines where tick labels are drawn with respect to their corresponding ticks and grid lines.

    tickLabelPosition

    Determines where tick labels are drawn with respect to the axis Please note that top or bottom has no effect on x axes or when ticklabelmode is set to period.

    mirror

    Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area.

    tickLength

    Sets the tick length (in px).

    tickWidth

    Sets the tick width (in px).

    tickColor

    Sets the tick color.

    showTickLabels

    Determines whether or not the tick labels are drawn.

    autoMargin

    Determines whether long tick labels automatically grow the figure margins.

    showSpikes

    Determines whether or not spikes (aka droplines) are drawn for this axis.

    spikeColor

    Sets the spike color.

    spikeThickness

    Sets the width (in px) of the zero line.

    spikeDash

    Sets the dash style of lines.

    spikeMode

    Determines the drawing mode for the spike line If toaxis, the line is drawn from the data point to the axis the series is plotted on.

    spikeSnap

    Determines whether spikelines are stuck to the cursor or to the closest datapoints.

    tickFont

    Sets the tick font.

    tickAngle

    Sets the angle of the tick labels with respect to the horizontal.

    tickPrefix

    Sets a tick label prefix.

    showTickPrefix

    If all, all tick labels are displayed with a prefix.

    tickSuffix

    Sets a tick label suffix.

    showTickSuffix

    Same as showtickprefix but for tick suffixes.

    showExponent

    If all, all exponents are shown besides their significands.

    exponentFormat

    Determines a formatting rule for the tick exponents.

    minExponent

    Hide SI prefix for 10^n if |n| is below this number.

    separateThousands

    If “true”, even 4-digit integers are separated

    tickFormat

    Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python.

    tickFormatStops

    hoverFormat

    Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python.

    showLine

    Determines whether or not a line bounding this axis is drawn.

    lineColor

    Sets the axis line color.

    lineWidth

    Sets the width (in px) of the axis line.

    showGrid

    Determines whether or not grid lines are drawn.

    gridColor

    Sets the color of the grid lines.

    gridWidth

    Sets the width (in px) of the grid lines.

    zeroLine

    Determines whether or not a line is drawn at along the 0 value of this axis.

    zeroLineColor

    Sets the line color of the zero line.

    zeroLineWidth

    Sets the width (in px) of the zero line.

    showDividers

    Determines whether or not a dividers are drawn between the category levels of this axis.

    dividerColor

    Sets the color of the dividers Only has an effect on multicategory axes.

    dividerWidth

    Sets the width (in px) of the dividers Only has an effect on multicategory axes.

    anchor

    If set to an opposite-letter axis id (e.g.

    side

    Determines whether a x (y) axis is positioned at the bottom (left) or top (right) of the plotting area.

    overlaying

    If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes.

    layer

    Sets the layer on which this axis is displayed.

    domain

    Sets the domain of this axis (in plot fraction).

    position

    Sets the position of this axis in the plotting space (in normalized coordinates).

    categoryOrder

    Specifies the ordering logic for the case of categorical variables.

    categoryArray

    Sets the order in which categories on this axis appear.

    uiRevision

    Controls persistence of user-driven changes in axis range, autorange, and title if in editable: true configuration.

    rangeSlider

    rangeSelector

    calendar

    Sets the calendar system to use for range and tick0 if this is a date axis.

Available where Element == YAxis

  • Preset default axis’ customized with the most frequently used properties.

    Declaration

    Swift

    public static func preset(title: YAxis.Title? = nil, range: InfoArray? = nil, ticks: Ticks? =
            nil, tickAngle: Angle? = nil, showGrid: Bool? = nil, domain: InfoArray? = nil) -> [YAxis]

    Parameters

    title

    range

    Sets the range of this axis.

    ticks

    Determines whether ticks are drawn or not.

    tickAngle

    Sets the angle of the tick labels with respect to the horizontal.

    showGrid

    Determines whether or not grid lines are drawn.

    domain

    Sets the domain of this axis (in plot fraction).

  • Preset default axis’ customized with the specified properties.

    Declaration

    Swift

    public static func preset(visible: Bool? = nil, color: Color? = nil, title: YAxis.Title? = nil,
            type: YAxis.`Type`? = nil, autoTypeNumbers: AutoTypeNumbers? = nil, autoRange: AutoRange? = nil,
            rangeMode: RangeMode? = nil, range: InfoArray? = nil, fixedRange: Bool? = nil, scaleAnchor:
            YAxis.ScaleAnchor? = nil, scaleRatio: Double? = nil, constrain: YAxis.Constrain? = nil,
            constrainToward: YAxis.ConstrainToward? = nil, matches: YAxis.Matches? = nil, rangeBreaks:
            [YAxis.RangeBreak]? = nil, tickMode: TickMode? = nil, numTicks: Int? = nil, tick0: Anything? =
            nil, dTick: Anything? = nil, tickValues: [Double]? = nil, tickText: [Double]? = nil, ticks:
            Ticks? = nil, ticksOn: YAxis.TicksOn? = nil, tickLabelMode: YAxis.TickLabelMode? = nil,
            tickLabelPosition: YAxis.TickLabelPosition? = nil, mirror: Mirror? = nil, tickLength: Double? =
            nil, tickWidth: Double? = nil, tickColor: Color? = nil, showTickLabels: Bool? = nil, autoMargin:
            Bool? = nil, showSpikes: Bool? = nil, spikeColor: Color? = nil, spikeThickness: Double? = nil,
            spikeDash: String? = nil, spikeMode: YAxis.SpikeMode? = nil, spikeSnap: YAxis.SpikeSnap? = nil,
            tickFont: Font? = nil, tickAngle: Angle? = nil, tickPrefix: String? = nil, showTickPrefix:
            ShowTickPrefix? = nil, tickSuffix: String? = nil, showTickSuffix: ShowTickSuffix? = nil,
            showExponent: ShowExponent? = nil, exponentFormat: ExponentFormat? = nil, minExponent: Double? =
            nil, separateThousands: Bool? = nil, tickFormat: String? = nil, tickFormatStops:
            [TickFormatStop]? = nil, hoverFormat: String? = nil, showLine: Bool? = nil, lineColor: Color? =
            nil, lineWidth: Double? = nil, showGrid: Bool? = nil, gridColor: Color? = nil, gridWidth:
            Double? = nil, zeroLine: Bool? = nil, zeroLineColor: Color? = nil, zeroLineWidth: Double? = nil,
            showDividers: Bool? = nil, dividerColor: Color? = nil, dividerWidth: Double? = nil, anchor:
            YAxis.Anchor? = nil, side: YAxis.Side? = nil, overlaying: YAxis.Overlaying? = nil, layer:
            AxisLayer? = nil, domain: InfoArray? = nil, position: Double? = nil, categoryOrder:
            CategoryOrder? = nil, categoryArray: [Double]? = nil, uiRevision: Anything? = nil, calendar:
            Calendar? = nil) -> [YAxis]

    Parameters

    visible

    A single toggle to hide the axis while preserving interaction like dragging.

    color

    Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors.

    title

    type

    Sets the axis type.

    autoTypeNumbers

    Using strict a numeric string in trace data is not converted to a number.

    autoRange

    Determines whether or not the range of this axis is computed in relation to the input data.

    rangeMode

    If normal, the range is computed in relation to the extrema of the input data.

    range

    Sets the range of this axis.

    fixedRange

    Determines whether or not this axis is zoom-able.

    scaleAnchor

    If set to another axis id (e.g.

    scaleRatio

    If this axis is linked to another by scaleanchor, this determines the pixel to unit scale ratio.

    constrain

    If this axis needs to be compressed (either due to its own scaleanchor and scaleratio or those of the other axis), determines how that happens: by increasing the range, or by decreasing the domain.

    constrainToward

    If this axis needs to be compressed (either due to its own scaleanchor and scaleratio or those of the other axis), determines which direction we push the originally specified plot area.

    matches

    If set to another axis id (e.g.

    rangeBreaks

    tickMode

    Sets the tick mode for this axis.

    numTicks

    Specifies the maximum number of ticks for the particular axis.

    tick0

    Sets the placement of the first tick on this axis.

    dTick

    Sets the step in-between ticks on this axis.

    tickValues

    Sets the values at which ticks on this axis appear.

    tickText

    Sets the text displayed at the ticks position via tickvals.

    ticks

    Determines whether ticks are drawn or not.

    ticksOn

    Determines where ticks and grid lines are drawn with respect to their corresponding tick labels.

    tickLabelMode

    Determines where tick labels are drawn with respect to their corresponding ticks and grid lines.

    tickLabelPosition

    Determines where tick labels are drawn with respect to the axis Please note that top or bottom has no effect on x axes or when ticklabelmode is set to period.

    mirror

    Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area.

    tickLength

    Sets the tick length (in px).

    tickWidth

    Sets the tick width (in px).

    tickColor

    Sets the tick color.

    showTickLabels

    Determines whether or not the tick labels are drawn.

    autoMargin

    Determines whether long tick labels automatically grow the figure margins.

    showSpikes

    Determines whether or not spikes (aka droplines) are drawn for this axis.

    spikeColor

    Sets the spike color.

    spikeThickness

    Sets the width (in px) of the zero line.

    spikeDash

    Sets the dash style of lines.

    spikeMode

    Determines the drawing mode for the spike line If toaxis, the line is drawn from the data point to the axis the series is plotted on.

    spikeSnap

    Determines whether spikelines are stuck to the cursor or to the closest datapoints.

    tickFont

    Sets the tick font.

    tickAngle

    Sets the angle of the tick labels with respect to the horizontal.

    tickPrefix

    Sets a tick label prefix.

    showTickPrefix

    If all, all tick labels are displayed with a prefix.

    tickSuffix

    Sets a tick label suffix.

    showTickSuffix

    Same as showtickprefix but for tick suffixes.

    showExponent

    If all, all exponents are shown besides their significands.

    exponentFormat

    Determines a formatting rule for the tick exponents.

    minExponent

    Hide SI prefix for 10^n if |n| is below this number.

    separateThousands

    If “true”, even 4-digit integers are separated

    tickFormat

    Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python.

    tickFormatStops

    hoverFormat

    Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python.

    showLine

    Determines whether or not a line bounding this axis is drawn.

    lineColor

    Sets the axis line color.

    lineWidth

    Sets the width (in px) of the axis line.

    showGrid

    Determines whether or not grid lines are drawn.

    gridColor

    Sets the color of the grid lines.

    gridWidth

    Sets the width (in px) of the grid lines.

    zeroLine

    Determines whether or not a line is drawn at along the 0 value of this axis.

    zeroLineColor

    Sets the line color of the zero line.

    zeroLineWidth

    Sets the width (in px) of the zero line.

    showDividers

    Determines whether or not a dividers are drawn between the category levels of this axis.

    dividerColor

    Sets the color of the dividers Only has an effect on multicategory axes.

    dividerWidth

    Sets the width (in px) of the dividers Only has an effect on multicategory axes.

    anchor

    If set to an opposite-letter axis id (e.g.

    side

    Determines whether a x (y) axis is positioned at the bottom (left) or top (right) of the plotting area.

    overlaying

    If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes.

    layer

    Sets the layer on which this axis is displayed.

    domain

    Sets the domain of this axis (in plot fraction).

    position

    Sets the position of this axis in the plotting space (in normalized coordinates).

    categoryOrder

    Specifies the ordering logic for the case of categorical variables.

    categoryArray

    Sets the order in which categories on this axis appear.

    uiRevision

    Controls persistence of user-driven changes in axis range, autorange, and title if in editable: true configuration.

    calendar

    Sets the calendar system to use for range and tick0 if this is a date axis.

Available where Element == Ternary

  • Preset default axis’ customized with the specified properties.

    Declaration

    Swift

    public static func preset(domain: Domain? = nil, backgroundColor: Color? = nil, sum: Double? =
            nil, aAxis: Ternary.AAxis? = nil, bAxis: Ternary.BAxis? = nil, cAxis: Ternary.CAxis? = nil,
            uiRevision: Anything? = nil) -> [Ternary]

    Parameters

    domain

    backgroundColor

    Set the background color of the subplot

    sum

    The number each triplet should sum to, and the maximum range of each axis

    aAxis

    bAxis

    cAxis

    uiRevision

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

Available where Element == Scene

  • Preset default axis’ customized with the specified properties.

    Declaration

    Swift

    public static func preset(backgroundColor: Color? = nil, camera: Scene.Camera? = nil, domain:
            Domain? = nil, aspectMode: Scene.AspectMode? = nil, aspectRatio: Scene.AspectRatio? = nil,
            xAxis: Scene.XAxis? = nil, yAxis: Scene.YAxis? = nil, zAxis: Scene.ZAxis? = nil, dragMode:
            Scene.DragMode? = nil, hoverMode: Scene.HoverMode? = nil, uiRevision: Anything? = nil,
            annotations: [Scene.Annotation]? = nil) -> [Scene]

    Parameters

    backgroundColor

    camera

    domain

    aspectMode

    If cube, this scene’s axes are drawn as a cube, regardless of the axes’ ranges.

    aspectRatio

    Sets this scene’s axis aspectratio.

    xAxis

    yAxis

    zAxis

    dragMode

    Determines the mode of drag interactions for this scene.

    hoverMode

    Determines the mode of hover interactions for this scene.

    uiRevision

    Controls persistence of user-driven changes in camera attributes.

    annotations

Available where Element == Geo

  • Preset default axis’ customized with the specified properties.

    Declaration

    Swift

    public static func preset(domain: Domain? = nil, fitBounds: Geo.FitBounds? = nil, resolution:
            Geo.Resolution? = nil, scope: Geo.Scope? = nil, projection: Geo.Projection? = nil, center:
            Geo.Center? = nil, visible: Bool? = nil, showCoastLines: Bool? = nil, coastLineColor: Color? =
            nil, coastLineWidth: Double? = nil, showLand: Bool? = nil, landColor: Color? = nil, showOcean:
            Bool? = nil, oceanColor: Color? = nil, showLakes: Bool? = nil, lakeColor: Color? = nil,
            showRivers: Bool? = nil, riverColor: Color? = nil, riverWidth: Double? = nil, showCountries:
            Bool? = nil, countryColor: Color? = nil, countryWidth: Double? = nil, showSubunits: Bool? = nil,
            subUnitColor: Color? = nil, subUnitWidth: Double? = nil, showFrame: Bool? = nil, frameColor:
            Color? = nil, frameWidth: Double? = nil, backgroundColor: Color? = nil, longitudeAxis:
            Geo.LongitudeAxis? = nil, latitudeAxis: Geo.LatitudeAxis? = nil, uiRevision: Anything? = nil) ->
            [Geo]

    Parameters

    domain

    fitBounds

    Determines if this subplot’s view settings are auto-computed to fit trace data.

    resolution

    Sets the resolution of the base layers.

    scope

    Set the scope of the map.

    projection

    center

    visible

    Sets the default visibility of the base layers.

    showCoastLines

    Sets whether or not the coastlines are drawn.

    coastLineColor

    Sets the coastline color.

    coastLineWidth

    Sets the coastline stroke width (in px).

    showLand

    Sets whether or not land masses are filled in color.

    landColor

    Sets the land mass color.

    showOcean

    Sets whether or not oceans are filled in color.

    oceanColor

    Sets the ocean color

    showLakes

    Sets whether or not lakes are drawn.

    lakeColor

    Sets the color of the lakes.

    showRivers

    Sets whether or not rivers are drawn.

    riverColor

    Sets color of the rivers.

    riverWidth

    Sets the stroke width (in px) of the rivers.

    showCountries

    Sets whether or not country boundaries are drawn.

    countryColor

    Sets line color of the country boundaries.

    countryWidth

    Sets line width (in px) of the country boundaries.

    showSubunits

    Sets whether or not boundaries of subunits within countries (e.g.

    subUnitColor

    Sets the color of the subunits boundaries.

    subUnitWidth

    Sets the stroke width (in px) of the subunits boundaries.

    showFrame

    Sets whether or not a frame is drawn around the map.

    frameColor

    Sets the color the frame.

    frameWidth

    Sets the stroke width (in px) of the frame.

    backgroundColor

    Set the background color of the map

    longitudeAxis

    latitudeAxis

    uiRevision

    Controls persistence of user-driven changes in the view (projection and center).

Available where Element == Mapbox

  • Preset default axis’ customized with the specified properties.

    Declaration

    Swift

    public static func preset(domain: Domain? = nil, accessToken: String? = nil, style: Anything? =
            nil, center: Mapbox.Center? = nil, zoom: Double? = nil, bearing: Double? = nil, pitch: Double? =
            nil, layers: [Mapbox.Layer]? = nil, uiRevision: Anything? = nil) -> [Mapbox]

    Parameters

    domain

    accessToken

    Sets the mapbox access token to be used for this mapbox map.

    style

    Defines the map layers that are rendered by default below the trace layers defined in data, which are themselves by default rendered below the layers defined in layout.mapbox.layers.

    center

    zoom

    Sets the zoom level of the map (mapbox.zoom).

    bearing

    Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing).

    pitch

    Sets the pitch angle of the map (in degrees, where 0 means perpendicular to the surface of the map) (mapbox.pitch).

    layers

    uiRevision

    Controls persistence of user-driven changes in the view: center, zoom, bearing, pitch.

Available where Element == Polar

  • Preset default axis’ customized with the specified properties.

    Declaration

    Swift

    public static func preset(domain: Domain? = nil, sector: InfoArray? = nil, hole: Double? = nil,
            backgroundColor: Color? = nil, radialAxis: Polar.RadialAxis? = nil, angularAxis:
            Polar.AngularAxis? = nil, gridShape: Polar.GridShape? = nil, uiRevision: Anything? = nil) ->
            [Polar]

    Parameters

    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.

Available where Element == ColorAxis

  • Preset default axis’ customized with the specified properties.

    Declaration

    Swift

    public static func preset(cAuto: Bool? = nil, cMin: Double? = nil, cMax: Double? = nil, cMiddle:
            Double? = nil, colorScale: ColorScale? = nil, autoColorScale: Bool? = nil, reverseScale: Bool? =
            nil, showScale: Bool? = nil, colorBar: ColorBar? = nil) -> [ColorAxis]

    Parameters

    cAuto

    Determines whether or not the color domain is computed with respect to the input data (here corresponding trace color array(s)) or the bounds set in cmin and cmax Defaults to false when cmin and cmax are set by the user.

    cMin

    Sets the lower bound of the color domain.

    cMax

    Sets the upper bound of the color domain.

    cMiddle

    Sets the mid-point of the color domain by scaling cmin and/or cmax to be equidistant to this point.

    colorScale

    Sets the colorscale.

    autoColorScale

    Determines whether the colorscale is a default palette (autocolorscale: true) or the palette determined by colorscale.

    reverseScale

    Reverses the color mapping if true.

    showScale

    Determines whether or not a colorbar is displayed for this trace.

    colorBar

Available where Element: Encodable

  • Undocumented

    Declaration

    Swift

    public func encode(toPlotly encoder: Encoder) throws