Other Enumerations

The following enumerations are available globally.

  • An error that occurs during the decoding of a value from the CSV representation.

    See more

    Declaration

    Swift

    public enum CSVDecodingError : Swift.Error

Enums

  • Sets the title’s horizontal alignment with respect to its x position.

    left means that the title starts at x, right means that the title ends at x and center means that the title’s center is at x. auto divides xref by three and calculates the xanchor value automatically based on the value of x.

    See more

    Declaration

    Swift

    public enum XAutoAnchor : String, Encodable
  • Sets the title’s vertical alignment with respect to its y position.

    top means that the title’s cap line is at y, bottom means that the title’s baseline is at y and middle means that the title’s midline is at y. auto divides yref by three and calculates the yanchor value automatically based on the value of y.

    See more

    Declaration

    Swift

    public enum YAutoAnchor : String, Encodable
  • Using strict a numeric string in trace data is not converted to a number.

    Using convert types a numeric string in trace data may be treated as a number during automatic axis type detection. This is the default value; however it could be overridden for individual axes.

    Note

    Used by Layout.autoTypeNumbers, XAxis.autoTypeNumbers, YAxis.autoTypeNumbers, Scene.XAxis.autoTypeNumbers, Scene.YAxis.autoTypeNumbers, Scene.ZAxis.autoTypeNumbers, Polar.RadialAxis.autoTypeNumbers, Polar.AngularAxis.autoTypeNumbers, Carpet<XData, YData, AData, BData>.AAxis.autoTypeNumbers, Carpet<XData, YData, AData, BData>.BAxis.autoTypeNumbers.
    See more

    Declaration

    Swift

    public enum AutoTypeNumbers : String, Encodable
  • Sets the orientation of the modebar.

    Note

    Used by Layout.ModeBar.orientation, Layout.Legend.orientation, Scatter<XData, YData>.orientation, Bar<XData, YData>.orientation, Box<YData, XData, QData>.orientation, Histogram<XData, YData>.orientation, Violin<YData, XData>.orientation, Funnel<XData, YData>.orientation, Waterfall<XData, YData>.orientation, Sankey.orientation.
    See more

    Declaration

    Swift

    public enum Orientation : String, Encodable
  • Specifies whether new shapes are drawn below or above traces.

    See more

    Declaration

    Swift

    public enum ShapeLayer : String, Encodable
  • The easing function used for the transition

    See more

    Declaration

    Swift

    public enum Easing : String, Encodable
  • Sets the horizontal alignment of the text content within hover label box.

    Has an effect only if the hover label text spans more two or more lines

    Note

    Used by HoverLabel.align, Scatter<XData, YData>.HoverLabel.align, Bar<XData, YData>.HoverLabel.align, Box<YData, XData, QData>.HoverLabel.align, Heatmap<ZData, XYData>.HoverLabel.align, Histogram<XData, YData>.HoverLabel.align, Histogram2D<XData, YData, ZData>.HoverLabel.align, Histogram2DContour<XData, YData, ZData>.HoverLabel.align, Contour<ZData, XData, YData>.HoverLabel.align, ScatterTernary<AData, BData, CData>.HoverLabel.align, Violin<YData, XData>.HoverLabel.align, Funnel<XData, YData>.HoverLabel.align, Waterfall<XData, YData>.HoverLabel.align, Image<ZData>.HoverLabel.align, Pie<LabelsData, ValuesData>.HoverLabel.align, Sunburst<ValuesData>.HoverLabel.align, Treemap<ValuesData>.HoverLabel.align, FunnelArea<LabelsData, ValuesData>.HoverLabel.align, Scatter3D<XData, YData, ZData>.HoverLabel.align, Surface<ZSurfaceData, XYData>.HoverLabel.align, Isosurface<XData, YData, ZData, ValueData>.HoverLabel.align, Volume<XYZData, ValueData>.HoverLabel.align, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.HoverLabel.align, Cone<XYZData, UVWData>.HoverLabel.align, StreamTube<XYZData, UVWData>.HoverLabel.align, ScatterGeo<CoordinateData, LocationsData>.HoverLabel.align, Choropleth<LocationsData, ZData>.HoverLabel.align, ScatterGL<XData, YData>.HoverLabel.align, ScatterPlotMatrix.HoverLabel.align, PointCloud<XYData>.HoverLabel.align, HeatmapGL<ZData, XYData>.HoverLabel.align, ScatterMapbox<CoordinateData>.HoverLabel.align, ChoroplethMapbox<LocationsData, ZData>.HoverLabel.align, DensityMapbox<CoordinateData, ZData>.HoverLabel.align, Sankey.HoverLabel.align, Sankey.Node.HoverLabel.align, Sankey.Link.HoverLabel.align, Table<CellData>.HoverLabel.align, ScatterCarpet<AData, BData>.HoverLabel.align, OHLC<XData, OHLCData>.HoverLabel.align, Candlestick<XData, OHLCData>.HoverLabel.align, ScatterPolar<RData, ThetaData>.HoverLabel.align, ScatterPolarGL<RData, ThetaData>.HoverLabel.align, BarPolar<RData, ThetaData>.HoverLabel.align.
    See more

    Declaration

    Swift

    public enum AutoAlign : String, Encodable
  • Sets the default calendar system to use for interpreting and displaying dates throughout the plot.

    Note

    Used by Layout.calendar, XAxis.calendar, YAxis.calendar, Scene.XAxis.calendar, Scene.YAxis.calendar, Scene.ZAxis.calendar, Polar.RadialAxis.calendar, Scatter<XData, YData>.xCalendar, Scatter<XData, YData>.yCalendar, Bar<XData, YData>.xCalendar, Bar<XData, YData>.yCalendar, Box<YData, XData, QData>.xCalendar, Box<YData, XData, QData>.yCalendar, Heatmap<ZData, XYData>.xCalendar, Heatmap<ZData, XYData>.yCalendar, Histogram<XData, YData>.xCalendar, Histogram<XData, YData>.yCalendar, Histogram2D<XData, YData, ZData>.xCalendar, Histogram2D<XData, YData, ZData>.yCalendar, Histogram2DContour<XData, YData, ZData>.xCalendar, Histogram2DContour<XData, YData, ZData>.yCalendar, Contour<ZData, XData, YData>.xCalendar, Contour<ZData, XData, YData>.yCalendar, Scatter3D<XData, YData, ZData>.xCalendar, Scatter3D<XData, YData, ZData>.yCalendar, Scatter3D<XData, YData, ZData>.zCalendar, Surface<ZSurfaceData, XYData>.xCalendar, Surface<ZSurfaceData, XYData>.yCalendar, Surface<ZSurfaceData, XYData>.zCalendar, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.xCalendar, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.yCalendar, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.zCalendar, ScatterGL<XData, YData>.xCalendar, ScatterGL<XData, YData>.yCalendar, OHLC<XData, OHLCData>.xCalendar, Candlestick<XData, OHLCData>.xCalendar, Filter.valueCalendar, Filter.targetCalendar.
    See more

    Declaration

    Swift

    public enum Calendar : String, Encodable
  • Determines whether or not the range of this axis is computed in relation to the input data.

    See rangemode for more info. If range is provided, then autorange is set to false.

    Note

    Used by XAxis.autoRange, YAxis.autoRange, Scene.XAxis.autoRange, Scene.YAxis.autoRange, Scene.ZAxis.autoRange, Polar.RadialAxis.autoRange, Carpet<XData, YData, AData, BData>.AAxis.autoRange, Carpet<XData, YData, AData, BData>.BAxis.autoRange.
    See more

    Declaration

    Swift

    public enum AutoRange : Encodable
  • If normal, the range is computed in relation to the extrema of the input data.

    If tozero`, the range extends to 0, regardless of the input data If nonnegative, the range is non-negative, regardless of the input data. Applies only to linear axes.

    Note

    Used by XAxis.rangeMode, YAxis.rangeMode, Scene.XAxis.rangeMode, Scene.YAxis.rangeMode, Scene.ZAxis.rangeMode, Carpet<XData, YData, AData, BData>.AAxis.rangeMode, Carpet<XData, YData, AData, BData>.BAxis.rangeMode.
    See more

    Declaration

    Swift

    public enum RangeMode : String, Encodable
  • Sets the tick mode for this axis.

    If auto, the number of ticks is set via nticks. If linear, the placement of the ticks is determined by a starting position tick0 and a tick step dtick (linear is the default value if tick0 and dtick are provided). If array, the placement of the ticks is set via tickvals and the tick text is ticktext. (array is the default value if tickvals is provided).

    Note

    Used by XAxis.tickMode, YAxis.tickMode, Ternary.AAxis.tickMode, Ternary.BAxis.tickMode, Ternary.CAxis.tickMode, Scene.XAxis.tickMode, Scene.YAxis.tickMode, Scene.ZAxis.tickMode, Polar.RadialAxis.tickMode, Polar.AngularAxis.tickMode, ColorBar.tickMode, GradientMarker.ColorBar.tickMode, Marker.ColorBar.tickMode, Heatmap<ZData, XYData>.ColorBar.tickMode, Histogram<XData, YData>.Marker.ColorBar.tickMode, Histogram2D<XData, YData, ZData>.ColorBar.tickMode, Histogram2DContour<XData, YData, ZData>.ColorBar.tickMode, Contour<ZData, XData, YData>.ColorBar.tickMode, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.tickMode, Funnel<XData, YData>.Marker.ColorBar.tickMode, Sunburst<ValuesData>.Marker.ColorBar.tickMode, Treemap<ValuesData>.Marker.ColorBar.tickMode, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.tickMode, SymbolicMarker.ColorBar.tickMode, Surface<ZSurfaceData, XYData>.ColorBar.tickMode, Isosurface<XData, YData, ZData, ValueData>.ColorBar.tickMode, Volume<XYZData, ValueData>.ColorBar.tickMode, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.tickMode, Cone<XYZData, UVWData>.ColorBar.tickMode, StreamTube<XYZData, UVWData>.ColorBar.tickMode, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.tickMode, Choropleth<LocationsData, ZData>.ColorBar.tickMode, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.tickMode, ScatterPlotMatrix.SymbolicMarker.ColorBar.tickMode, HeatmapGL<ZData, XYData>.ColorBar.tickMode, ParallelCoordinates.MarkerLine.ColorBar.tickMode, ParallelCategories.ShapedMarkerLine.ColorBar.tickMode, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.tickMode, ChoroplethMapbox<LocationsData, ZData>.ColorBar.tickMode, DensityMapbox<CoordinateData, ZData>.ColorBar.tickMode, Indicator.Gauge.Axis.tickMode, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.tickMode, ContourCarpet<ZData, AData, BData>.ColorBar.tickMode, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.tickMode, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.tickMode, BarPolar<RData, ThetaData>.Marker.ColorBar.tickMode.
    See more

    Declaration

    Swift

    public enum TickMode : String, Encodable
  • Determines whether ticks are drawn or not.

    If *, this axis’ ticks are not drawn. If *outside (inside), this axis’ are drawn outside (inside) the axis lines.

    Note

    Used by XAxis.ticks, YAxis.ticks, Ternary.AAxis.ticks, Ternary.BAxis.ticks, Ternary.CAxis.ticks, Scene.XAxis.ticks, Scene.YAxis.ticks, Scene.ZAxis.ticks, Polar.RadialAxis.ticks, Polar.AngularAxis.ticks, ColorBar.ticks, GradientMarker.ColorBar.ticks, Marker.ColorBar.ticks, Heatmap<ZData, XYData>.ColorBar.ticks, Histogram<XData, YData>.Marker.ColorBar.ticks, Histogram2D<XData, YData, ZData>.ColorBar.ticks, Histogram2DContour<XData, YData, ZData>.ColorBar.ticks, Contour<ZData, XData, YData>.ColorBar.ticks, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.ticks, Funnel<XData, YData>.Marker.ColorBar.ticks, Sunburst<ValuesData>.Marker.ColorBar.ticks, Treemap<ValuesData>.Marker.ColorBar.ticks, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.ticks, SymbolicMarker.ColorBar.ticks, Surface<ZSurfaceData, XYData>.ColorBar.ticks, Isosurface<XData, YData, ZData, ValueData>.ColorBar.ticks, Volume<XYZData, ValueData>.ColorBar.ticks, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.ticks, Cone<XYZData, UVWData>.ColorBar.ticks, StreamTube<XYZData, UVWData>.ColorBar.ticks, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.ticks, Choropleth<LocationsData, ZData>.ColorBar.ticks, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.ticks, ScatterPlotMatrix.SymbolicMarker.ColorBar.ticks, HeatmapGL<ZData, XYData>.ColorBar.ticks, ParallelCoordinates.MarkerLine.ColorBar.ticks, ParallelCategories.ShapedMarkerLine.ColorBar.ticks, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.ticks, ChoroplethMapbox<LocationsData, ZData>.ColorBar.ticks, DensityMapbox<CoordinateData, ZData>.ColorBar.ticks, Indicator.Gauge.Axis.ticks, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.ticks, ContourCarpet<ZData, AData, BData>.ColorBar.ticks, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.ticks, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.ticks, BarPolar<RData, ThetaData>.Marker.ColorBar.ticks.
    See more

    Declaration

    Swift

    public enum Ticks : String, Encodable
  • Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area.

    If true, the axis lines are mirrored. If ticks, the axis lines and ticks are mirrored. If false, mirroring is disable. If all, axis lines are mirrored on all shared-axes subplots. If allticks, axis lines and ticks are mirrored on all shared-axes subplots.

    See more

    Declaration

    Swift

    public enum Mirror : Encodable
  • If all, all tick labels are displayed with a prefix.

    If first, only the first tick is displayed with a prefix. If last, only the last tick is displayed with a suffix. If none, tick prefixes are hidden.

    Note

    Used by XAxis.showTickPrefix, YAxis.showTickPrefix, Ternary.AAxis.showTickPrefix, Ternary.BAxis.showTickPrefix, Ternary.CAxis.showTickPrefix, Scene.XAxis.showTickPrefix, Scene.YAxis.showTickPrefix, Scene.ZAxis.showTickPrefix, Polar.RadialAxis.showTickPrefix, Polar.AngularAxis.showTickPrefix, ColorBar.showTickPrefix, GradientMarker.ColorBar.showTickPrefix, Marker.ColorBar.showTickPrefix, Heatmap<ZData, XYData>.ColorBar.showTickPrefix, Histogram<XData, YData>.Marker.ColorBar.showTickPrefix, Histogram2D<XData, YData, ZData>.ColorBar.showTickPrefix, Histogram2DContour<XData, YData, ZData>.ColorBar.showTickPrefix, Contour<ZData, XData, YData>.ColorBar.showTickPrefix, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.showTickPrefix, Funnel<XData, YData>.Marker.ColorBar.showTickPrefix, Sunburst<ValuesData>.Marker.ColorBar.showTickPrefix, Treemap<ValuesData>.Marker.ColorBar.showTickPrefix, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.showTickPrefix, SymbolicMarker.ColorBar.showTickPrefix, Surface<ZSurfaceData, XYData>.ColorBar.showTickPrefix, Isosurface<XData, YData, ZData, ValueData>.ColorBar.showTickPrefix, Volume<XYZData, ValueData>.ColorBar.showTickPrefix, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.showTickPrefix, Cone<XYZData, UVWData>.ColorBar.showTickPrefix, StreamTube<XYZData, UVWData>.ColorBar.showTickPrefix, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.showTickPrefix, Choropleth<LocationsData, ZData>.ColorBar.showTickPrefix, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.showTickPrefix, ScatterPlotMatrix.SymbolicMarker.ColorBar.showTickPrefix, HeatmapGL<ZData, XYData>.ColorBar.showTickPrefix, ParallelCoordinates.MarkerLine.ColorBar.showTickPrefix, ParallelCategories.ShapedMarkerLine.ColorBar.showTickPrefix, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.showTickPrefix, ChoroplethMapbox<LocationsData, ZData>.ColorBar.showTickPrefix, DensityMapbox<CoordinateData, ZData>.ColorBar.showTickPrefix, Indicator.Gauge.Axis.showTickPrefix, Carpet<XData, YData, AData, BData>.AAxis.showTickPrefix, Carpet<XData, YData, AData, BData>.BAxis.showTickPrefix, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.showTickPrefix, ContourCarpet<ZData, AData, BData>.ColorBar.showTickPrefix, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.showTickPrefix, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.showTickPrefix, BarPolar<RData, ThetaData>.Marker.ColorBar.showTickPrefix.
    See more

    Declaration

    Swift

    public enum ShowTickPrefix : String, Encodable
  • Same as showtickprefix but for tick suffixes.

    Note

    Used by XAxis.showTickSuffix, YAxis.showTickSuffix, Ternary.AAxis.showTickSuffix, Ternary.BAxis.showTickSuffix, Ternary.CAxis.showTickSuffix, Scene.XAxis.showTickSuffix, Scene.YAxis.showTickSuffix, Scene.ZAxis.showTickSuffix, Polar.RadialAxis.showTickSuffix, Polar.AngularAxis.showTickSuffix, ColorBar.showTickSuffix, GradientMarker.ColorBar.showTickSuffix, Marker.ColorBar.showTickSuffix, Heatmap<ZData, XYData>.ColorBar.showTickSuffix, Histogram<XData, YData>.Marker.ColorBar.showTickSuffix, Histogram2D<XData, YData, ZData>.ColorBar.showTickSuffix, Histogram2DContour<XData, YData, ZData>.ColorBar.showTickSuffix, Contour<ZData, XData, YData>.ColorBar.showTickSuffix, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.showTickSuffix, Funnel<XData, YData>.Marker.ColorBar.showTickSuffix, Sunburst<ValuesData>.Marker.ColorBar.showTickSuffix, Treemap<ValuesData>.Marker.ColorBar.showTickSuffix, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.showTickSuffix, SymbolicMarker.ColorBar.showTickSuffix, Surface<ZSurfaceData, XYData>.ColorBar.showTickSuffix, Isosurface<XData, YData, ZData, ValueData>.ColorBar.showTickSuffix, Volume<XYZData, ValueData>.ColorBar.showTickSuffix, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.showTickSuffix, Cone<XYZData, UVWData>.ColorBar.showTickSuffix, StreamTube<XYZData, UVWData>.ColorBar.showTickSuffix, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.showTickSuffix, Choropleth<LocationsData, ZData>.ColorBar.showTickSuffix, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.showTickSuffix, ScatterPlotMatrix.SymbolicMarker.ColorBar.showTickSuffix, HeatmapGL<ZData, XYData>.ColorBar.showTickSuffix, ParallelCoordinates.MarkerLine.ColorBar.showTickSuffix, ParallelCategories.ShapedMarkerLine.ColorBar.showTickSuffix, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.showTickSuffix, ChoroplethMapbox<LocationsData, ZData>.ColorBar.showTickSuffix, DensityMapbox<CoordinateData, ZData>.ColorBar.showTickSuffix, Indicator.Gauge.Axis.showTickSuffix, Carpet<XData, YData, AData, BData>.AAxis.showTickSuffix, Carpet<XData, YData, AData, BData>.BAxis.showTickSuffix, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.showTickSuffix, ContourCarpet<ZData, AData, BData>.ColorBar.showTickSuffix, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.showTickSuffix, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.showTickSuffix, BarPolar<RData, ThetaData>.Marker.ColorBar.showTickSuffix.
    See more

    Declaration

    Swift

    public enum ShowTickSuffix : String, Encodable
  • If all, all exponents are shown besides their significands.

    If first, only the exponent of the first tick is shown. If last, only the exponent of the last tick is shown. If none, no exponents appear.

    Note

    Used by XAxis.showExponent, YAxis.showExponent, Ternary.AAxis.showExponent, Ternary.BAxis.showExponent, Ternary.CAxis.showExponent, Scene.XAxis.showExponent, Scene.YAxis.showExponent, Scene.ZAxis.showExponent, Polar.RadialAxis.showExponent, Polar.AngularAxis.showExponent, ColorBar.showExponent, GradientMarker.ColorBar.showExponent, Marker.ColorBar.showExponent, Heatmap<ZData, XYData>.ColorBar.showExponent, Histogram<XData, YData>.Marker.ColorBar.showExponent, Histogram2D<XData, YData, ZData>.ColorBar.showExponent, Histogram2DContour<XData, YData, ZData>.ColorBar.showExponent, Contour<ZData, XData, YData>.ColorBar.showExponent, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.showExponent, Funnel<XData, YData>.Marker.ColorBar.showExponent, Sunburst<ValuesData>.Marker.ColorBar.showExponent, Treemap<ValuesData>.Marker.ColorBar.showExponent, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.showExponent, SymbolicMarker.ColorBar.showExponent, Surface<ZSurfaceData, XYData>.ColorBar.showExponent, Isosurface<XData, YData, ZData, ValueData>.ColorBar.showExponent, Volume<XYZData, ValueData>.ColorBar.showExponent, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.showExponent, Cone<XYZData, UVWData>.ColorBar.showExponent, StreamTube<XYZData, UVWData>.ColorBar.showExponent, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.showExponent, Choropleth<LocationsData, ZData>.ColorBar.showExponent, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.showExponent, ScatterPlotMatrix.SymbolicMarker.ColorBar.showExponent, HeatmapGL<ZData, XYData>.ColorBar.showExponent, ParallelCoordinates.MarkerLine.ColorBar.showExponent, ParallelCategories.ShapedMarkerLine.ColorBar.showExponent, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.showExponent, ChoroplethMapbox<LocationsData, ZData>.ColorBar.showExponent, DensityMapbox<CoordinateData, ZData>.ColorBar.showExponent, Indicator.Gauge.Axis.showExponent, Carpet<XData, YData, AData, BData>.AAxis.showExponent, Carpet<XData, YData, AData, BData>.BAxis.showExponent, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.showExponent, ContourCarpet<ZData, AData, BData>.ColorBar.showExponent, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.showExponent, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.showExponent, BarPolar<RData, ThetaData>.Marker.ColorBar.showExponent.
    See more

    Declaration

    Swift

    public enum ShowExponent : String, Encodable
  • Determines a formatting rule for the tick exponents.

    For example, consider the number 1,000,000,000. If none, it appears as 1,000,000,000. If e, 1e+9. If E, 1E+9. If power, 1x10^9 (with 9 in a super script). If SI, 1G. If B, 1B.

    Note

    Used by XAxis.exponentFormat, YAxis.exponentFormat, Ternary.AAxis.exponentFormat, Ternary.BAxis.exponentFormat, Ternary.CAxis.exponentFormat, Scene.XAxis.exponentFormat, Scene.YAxis.exponentFormat, Scene.ZAxis.exponentFormat, Polar.RadialAxis.exponentFormat, Polar.AngularAxis.exponentFormat, ColorBar.exponentFormat, GradientMarker.ColorBar.exponentFormat, Marker.ColorBar.exponentFormat, Heatmap<ZData, XYData>.ColorBar.exponentFormat, Histogram<XData, YData>.Marker.ColorBar.exponentFormat, Histogram2D<XData, YData, ZData>.ColorBar.exponentFormat, Histogram2DContour<XData, YData, ZData>.ColorBar.exponentFormat, Contour<ZData, XData, YData>.ColorBar.exponentFormat, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.exponentFormat, Funnel<XData, YData>.Marker.ColorBar.exponentFormat, Sunburst<ValuesData>.Marker.ColorBar.exponentFormat, Treemap<ValuesData>.Marker.ColorBar.exponentFormat, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.exponentFormat, SymbolicMarker.ColorBar.exponentFormat, Surface<ZSurfaceData, XYData>.ColorBar.exponentFormat, Isosurface<XData, YData, ZData, ValueData>.ColorBar.exponentFormat, Volume<XYZData, ValueData>.ColorBar.exponentFormat, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.exponentFormat, Cone<XYZData, UVWData>.ColorBar.exponentFormat, StreamTube<XYZData, UVWData>.ColorBar.exponentFormat, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.exponentFormat, Choropleth<LocationsData, ZData>.ColorBar.exponentFormat, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.exponentFormat, ScatterPlotMatrix.SymbolicMarker.ColorBar.exponentFormat, HeatmapGL<ZData, XYData>.ColorBar.exponentFormat, ParallelCoordinates.MarkerLine.ColorBar.exponentFormat, ParallelCategories.ShapedMarkerLine.ColorBar.exponentFormat, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.exponentFormat, ChoroplethMapbox<LocationsData, ZData>.ColorBar.exponentFormat, DensityMapbox<CoordinateData, ZData>.ColorBar.exponentFormat, Indicator.Gauge.Axis.exponentFormat, Carpet<XData, YData, AData, BData>.AAxis.exponentFormat, Carpet<XData, YData, AData, BData>.BAxis.exponentFormat, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.exponentFormat, ContourCarpet<ZData, AData, BData>.ColorBar.exponentFormat, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.exponentFormat, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.exponentFormat, BarPolar<RData, ThetaData>.Marker.ColorBar.exponentFormat.
    See more

    Declaration

    Swift

    public enum ExponentFormat : String, Encodable
  • Sets the layer on which this axis is displayed.

    If above traces, this axis is displayed above all the subplot’s traces If below traces, this axis is displayed below all the subplot’s traces, but above the grid lines. Useful when used together with scatter-like traces with cliponaxis set to false to show markers and/or text nodes above this axis.

    See more

    Declaration

    Swift

    public enum AxisLayer : String, Encodable
  • Specifies the ordering logic for the case of categorical variables.

    By default, plotly uses trace, which specifies the order that is present in the data supplied. Set categoryorder to category ascending or category descending if order should be determined by the alphanumerical order of the category names. Set categoryorder to array to derive the ordering from the attribute categoryarray. If a category is not found in the categoryarray array, the sorting behavior for that attribute will be identical to the trace mode. The unspecified categories will follow the categories in categoryarray. Set categoryorder to total ascending or total descending if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values.

    See more

    Declaration

    Swift

    public enum CategoryOrder : String, Encodable
  • Sets the horizontal alignment of the text within the box.

    Has an effect only if text spans two or more lines (i.e. text contains one or more
    HTML tags) or if an explicit width is set to override the text width.

    See more

    Declaration

    Swift

    public enum HorizontalAlign : String, Encodable
  • Sets the vertical alignment of the text within the box.

    Has an effect only if an explicit height is set to override the text height.

    See more

    Declaration

    Swift

    public enum VerticalAlign : String, Encodable
  • Sets the positions of the text elements with respects to the (x,y) coordinates.

    Note

    Used by Mapbox.Layer.Symbol.textPosition, Scatter<XData, YData>.textPosition, ScatterTernary<AData, BData, CData>.textPosition, Treemap<ValuesData>.textPosition, Scatter3D<XData, YData, ZData>.textPosition, ScatterGeo<CoordinateData, LocationsData>.textPosition, ScatterGL<XData, YData>.textPosition, ScatterMapbox<CoordinateData>.textPosition, ScatterCarpet<AData, BData>.textPosition, ScatterPolar<RData, ThetaData>.textPosition, ScatterPolarGL<RData, ThetaData>.textPosition.
    See more

    Declaration

    Swift

    public enum TextPosition : String, Encodable
  • Sets the annotation’s x coordinate axis.

    If set to a x axis id (e.g. x or x2), the x position refers to a x coordinate. If set to paper, the x position refers to the distance from the left of the plotting area in normalized coordinates where 0 (1) corresponds to the left (right). If set to a x axis ID followed by domain (separated by a space), the position behaves like for paper, but refers to the distance in fractions of the domain length from the left of the domain of that axis: e.g., x2 domain refers to the domain of the second x axis and a x position of 0.5 refers to the point between the left and the right of the domain of the second x axis.

    See more

    Declaration

    Swift

    public enum XAxisReference : Encodable
  • Sets the annotation’s y coordinate axis.

    If set to a y axis id (e.g. y or y2), the y position refers to a y coordinate. If set to paper, the y position refers to the distance from the bottom of the plotting area in normalized coordinates where 0 (1) corresponds to the bottom (top). If set to a y axis ID followed by domain (separated by a space), the position behaves like for paper, but refers to the distance in fractions of the domain length from the bottom of the domain of that axis: e.g., y2 domain refers to the domain of the second y axis and a y position of 0.5 refers to the point between the bottom and the top of the domain of the second y axis.

    See more

    Declaration

    Swift

    public enum YAxisReference : Encodable
  • Sets the anchor for the x position

    Note

    Used by Layout.Image.xAnchor, Layout.Slider.CurrentValue.xAnchor, ColorBar.xAnchor, GradientMarker.ColorBar.xAnchor, Marker.ColorBar.xAnchor, Heatmap<ZData, XYData>.ColorBar.xAnchor, Histogram<XData, YData>.Marker.ColorBar.xAnchor, Histogram2D<XData, YData, ZData>.ColorBar.xAnchor, Histogram2DContour<XData, YData, ZData>.ColorBar.xAnchor, Contour<ZData, XData, YData>.ColorBar.xAnchor, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.xAnchor, Funnel<XData, YData>.Marker.ColorBar.xAnchor, Sunburst<ValuesData>.Marker.ColorBar.xAnchor, Treemap<ValuesData>.Marker.ColorBar.xAnchor, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.xAnchor, SymbolicMarker.ColorBar.xAnchor, Surface<ZSurfaceData, XYData>.ColorBar.xAnchor, Isosurface<XData, YData, ZData, ValueData>.ColorBar.xAnchor, Volume<XYZData, ValueData>.ColorBar.xAnchor, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.xAnchor, Cone<XYZData, UVWData>.ColorBar.xAnchor, StreamTube<XYZData, UVWData>.ColorBar.xAnchor, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.xAnchor, Choropleth<LocationsData, ZData>.ColorBar.xAnchor, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.xAnchor, ScatterPlotMatrix.SymbolicMarker.ColorBar.xAnchor, HeatmapGL<ZData, XYData>.ColorBar.xAnchor, ParallelCoordinates.MarkerLine.ColorBar.xAnchor, ParallelCategories.ShapedMarkerLine.ColorBar.xAnchor, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.xAnchor, ChoroplethMapbox<LocationsData, ZData>.ColorBar.xAnchor, DensityMapbox<CoordinateData, ZData>.ColorBar.xAnchor, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.xAnchor, ContourCarpet<ZData, AData, BData>.ColorBar.xAnchor, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.xAnchor, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.xAnchor, BarPolar<RData, ThetaData>.Marker.ColorBar.xAnchor.
    See more

    Declaration

    Swift

    public enum XAnchor : String, Encodable
  • Sets the anchor for the y position.

    Note

    Used by Layout.Image.yAnchor, ColorBar.yAnchor, GradientMarker.ColorBar.yAnchor, Marker.ColorBar.yAnchor, Heatmap<ZData, XYData>.ColorBar.yAnchor, Histogram<XData, YData>.Marker.ColorBar.yAnchor, Histogram2D<XData, YData, ZData>.ColorBar.yAnchor, Histogram2DContour<XData, YData, ZData>.ColorBar.yAnchor, Contour<ZData, XData, YData>.ColorBar.yAnchor, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.yAnchor, Funnel<XData, YData>.Marker.ColorBar.yAnchor, Sunburst<ValuesData>.Marker.ColorBar.yAnchor, Treemap<ValuesData>.Marker.ColorBar.yAnchor, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.yAnchor, SymbolicMarker.ColorBar.yAnchor, Surface<ZSurfaceData, XYData>.ColorBar.yAnchor, Isosurface<XData, YData, ZData, ValueData>.ColorBar.yAnchor, Volume<XYZData, ValueData>.ColorBar.yAnchor, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.yAnchor, Cone<XYZData, UVWData>.ColorBar.yAnchor, StreamTube<XYZData, UVWData>.ColorBar.yAnchor, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.yAnchor, Choropleth<LocationsData, ZData>.ColorBar.yAnchor, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.yAnchor, ScatterPlotMatrix.SymbolicMarker.ColorBar.yAnchor, HeatmapGL<ZData, XYData>.ColorBar.yAnchor, ParallelCoordinates.MarkerLine.ColorBar.yAnchor, ParallelCategories.ShapedMarkerLine.ColorBar.yAnchor, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.yAnchor, ChoroplethMapbox<LocationsData, ZData>.ColorBar.yAnchor, DensityMapbox<CoordinateData, ZData>.ColorBar.yAnchor, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.yAnchor, ContourCarpet<ZData, AData, BData>.ColorBar.yAnchor, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.yAnchor, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.yAnchor, BarPolar<RData, ThetaData>.Marker.ColorBar.yAnchor.
    See more

    Declaration

    Swift

    public enum YAnchor : String, Encodable
  • Determines whether this slider length is set in units of plot fraction or in *pixels.

    Use len to set the value.

    Note

    Used by Layout.Slider.lengthMode, ColorBar.lengthMode, GradientMarker.ColorBar.lengthMode, Marker.ColorBar.lengthMode, Heatmap<ZData, XYData>.ColorBar.lengthMode, Histogram<XData, YData>.Marker.ColorBar.lengthMode, Histogram2D<XData, YData, ZData>.ColorBar.lengthMode, Histogram2DContour<XData, YData, ZData>.ColorBar.lengthMode, Contour<ZData, XData, YData>.ColorBar.lengthMode, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.lengthMode, Funnel<XData, YData>.Marker.ColorBar.lengthMode, Sunburst<ValuesData>.Marker.ColorBar.lengthMode, Treemap<ValuesData>.Marker.ColorBar.lengthMode, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.lengthMode, SymbolicMarker.ColorBar.lengthMode, Surface<ZSurfaceData, XYData>.ColorBar.lengthMode, Isosurface<XData, YData, ZData, ValueData>.ColorBar.lengthMode, Volume<XYZData, ValueData>.ColorBar.lengthMode, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.lengthMode, Cone<XYZData, UVWData>.ColorBar.lengthMode, StreamTube<XYZData, UVWData>.ColorBar.lengthMode, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.lengthMode, Choropleth<LocationsData, ZData>.ColorBar.lengthMode, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.lengthMode, ScatterPlotMatrix.SymbolicMarker.ColorBar.lengthMode, HeatmapGL<ZData, XYData>.ColorBar.lengthMode, ParallelCoordinates.MarkerLine.ColorBar.lengthMode, ParallelCategories.ShapedMarkerLine.ColorBar.lengthMode, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.lengthMode, ChoroplethMapbox<LocationsData, ZData>.ColorBar.lengthMode, DensityMapbox<CoordinateData, ZData>.ColorBar.lengthMode, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.lengthMode, ContourCarpet<ZData, AData, BData>.ColorBar.lengthMode, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.lengthMode, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.lengthMode, BarPolar<RData, ThetaData>.Marker.ColorBar.lengthMode.
    See more

    Declaration

    Swift

    public enum LengthMode : String, Encodable
  • Determines whether this color bar’s thickness (i.e.

    the measure in the constant color direction) is set in units of plot fraction or in pixels. Use thickness to set the value.

    Note

    Used by ColorBar.thicknessMode, GradientMarker.ColorBar.thicknessMode, Marker.ColorBar.thicknessMode, Heatmap<ZData, XYData>.ColorBar.thicknessMode, Histogram<XData, YData>.Marker.ColorBar.thicknessMode, Histogram2D<XData, YData, ZData>.ColorBar.thicknessMode, Histogram2DContour<XData, YData, ZData>.ColorBar.thicknessMode, Contour<ZData, XData, YData>.ColorBar.thicknessMode, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.thicknessMode, Funnel<XData, YData>.Marker.ColorBar.thicknessMode, Sunburst<ValuesData>.Marker.ColorBar.thicknessMode, Treemap<ValuesData>.Marker.ColorBar.thicknessMode, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.thicknessMode, SymbolicMarker.ColorBar.thicknessMode, Surface<ZSurfaceData, XYData>.ColorBar.thicknessMode, Isosurface<XData, YData, ZData, ValueData>.ColorBar.thicknessMode, Volume<XYZData, ValueData>.ColorBar.thicknessMode, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.thicknessMode, Cone<XYZData, UVWData>.ColorBar.thicknessMode, StreamTube<XYZData, UVWData>.ColorBar.thicknessMode, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.thicknessMode, Choropleth<LocationsData, ZData>.ColorBar.thicknessMode, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.thicknessMode, ScatterPlotMatrix.SymbolicMarker.ColorBar.thicknessMode, HeatmapGL<ZData, XYData>.ColorBar.thicknessMode, ParallelCoordinates.MarkerLine.ColorBar.thicknessMode, ParallelCategories.ShapedMarkerLine.ColorBar.thicknessMode, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.thicknessMode, ChoroplethMapbox<LocationsData, ZData>.ColorBar.thicknessMode, DensityMapbox<CoordinateData, ZData>.ColorBar.thicknessMode, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.thicknessMode, ContourCarpet<ZData, AData, BData>.ColorBar.thicknessMode, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.thicknessMode, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.thicknessMode, BarPolar<RData, ThetaData>.Marker.ColorBar.thicknessMode.
    See more

    Declaration

    Swift

    public enum ThicknessMode : String, Encodable
  • Determines where tick labels are drawn.

    Note

    Used by ColorBar.tickLabelPosition, GradientMarker.ColorBar.tickLabelPosition, Marker.ColorBar.tickLabelPosition, Heatmap<ZData, XYData>.ColorBar.tickLabelPosition, Histogram<XData, YData>.Marker.ColorBar.tickLabelPosition, Histogram2D<XData, YData, ZData>.ColorBar.tickLabelPosition, Histogram2DContour<XData, YData, ZData>.ColorBar.tickLabelPosition, Contour<ZData, XData, YData>.ColorBar.tickLabelPosition, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.tickLabelPosition, Funnel<XData, YData>.Marker.ColorBar.tickLabelPosition, Sunburst<ValuesData>.Marker.ColorBar.tickLabelPosition, Treemap<ValuesData>.Marker.ColorBar.tickLabelPosition, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.tickLabelPosition, SymbolicMarker.ColorBar.tickLabelPosition, Surface<ZSurfaceData, XYData>.ColorBar.tickLabelPosition, Isosurface<XData, YData, ZData, ValueData>.ColorBar.tickLabelPosition, Volume<XYZData, ValueData>.ColorBar.tickLabelPosition, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.tickLabelPosition, Cone<XYZData, UVWData>.ColorBar.tickLabelPosition, StreamTube<XYZData, UVWData>.ColorBar.tickLabelPosition, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.tickLabelPosition, Choropleth<LocationsData, ZData>.ColorBar.tickLabelPosition, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.tickLabelPosition, ScatterPlotMatrix.SymbolicMarker.ColorBar.tickLabelPosition, HeatmapGL<ZData, XYData>.ColorBar.tickLabelPosition, ParallelCoordinates.MarkerLine.ColorBar.tickLabelPosition, ParallelCategories.ShapedMarkerLine.ColorBar.tickLabelPosition, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.tickLabelPosition, ChoroplethMapbox<LocationsData, ZData>.ColorBar.tickLabelPosition, DensityMapbox<CoordinateData, ZData>.ColorBar.tickLabelPosition, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.tickLabelPosition, ContourCarpet<ZData, AData, BData>.ColorBar.tickLabelPosition, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.tickLabelPosition, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.tickLabelPosition, BarPolar<RData, ThetaData>.Marker.ColorBar.tickLabelPosition.
    See more

    Declaration

    Swift

    public enum TickLabelPosition : String, Encodable
  • Determines the location of color bar’s title with respect to the color bar.

    Note that the title’s location used to be set by the now deprecated titleside attribute.

    Note

    Used by ColorBar.LegendTitle.side, GradientMarker.ColorBar.LegendTitle.side, Marker.ColorBar.LegendTitle.side, Heatmap<ZData, XYData>.ColorBar.LegendTitle.side, Histogram<XData, YData>.Marker.ColorBar.LegendTitle.side, Histogram2D<XData, YData, ZData>.ColorBar.LegendTitle.side, Histogram2DContour<XData, YData, ZData>.ColorBar.LegendTitle.side, Contour<ZData, XData, YData>.ColorBar.LegendTitle.side, ScatterTernary<AData, BData, CData>.GradientMarker.ColorBar.LegendTitle.side, Funnel<XData, YData>.Marker.ColorBar.LegendTitle.side, Sunburst<ValuesData>.Marker.ColorBar.LegendTitle.side, Treemap<ValuesData>.Marker.ColorBar.LegendTitle.side, Scatter3D<XData, YData, ZData>.DashedMarkerLine.ColorBar.LegendTitle.side, SymbolicMarker.ColorBar.LegendTitle.side, Surface<ZSurfaceData, XYData>.ColorBar.LegendTitle.side, Isosurface<XData, YData, ZData, ValueData>.ColorBar.LegendTitle.side, Volume<XYZData, ValueData>.ColorBar.LegendTitle.side, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.ColorBar.LegendTitle.side, Cone<XYZData, UVWData>.ColorBar.LegendTitle.side, StreamTube<XYZData, UVWData>.ColorBar.LegendTitle.side, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.ColorBar.LegendTitle.side, Choropleth<LocationsData, ZData>.ColorBar.LegendTitle.side, ScatterGL<XData, YData>.SymbolicMarker.ColorBar.LegendTitle.side, ScatterPlotMatrix.SymbolicMarker.ColorBar.LegendTitle.side, HeatmapGL<ZData, XYData>.ColorBar.LegendTitle.side, ParallelCoordinates.MarkerLine.ColorBar.LegendTitle.side, ParallelCategories.ShapedMarkerLine.ColorBar.LegendTitle.side, ScatterMapbox<CoordinateData>.SymbolicMarker.ColorBar.LegendTitle.side, ChoroplethMapbox<LocationsData, ZData>.ColorBar.LegendTitle.side, DensityMapbox<CoordinateData, ZData>.ColorBar.LegendTitle.side, ScatterCarpet<AData, BData>.GradientMarker.ColorBar.LegendTitle.side, ContourCarpet<ZData, AData, BData>.ColorBar.LegendTitle.side, ScatterPolar<RData, ThetaData>.GradientMarker.ColorBar.LegendTitle.side, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.ColorBar.LegendTitle.side, BarPolar<RData, ThetaData>.Marker.ColorBar.LegendTitle.side.
    See more

    Declaration

    Swift

    public enum Side : String, Encodable
  • Determines whether or not this trace is visible.

    If legendonly, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).

    Note

    Used by Scatter<XData, YData>.visible, Bar<XData, YData>.visible, Box<YData, XData, QData>.visible, Heatmap<ZData, XYData>.visible, Histogram<XData, YData>.visible, Histogram2D<XData, YData, ZData>.visible, Histogram2DContour<XData, YData, ZData>.visible, Contour<ZData, XData, YData>.visible, ScatterTernary<AData, BData, CData>.visible, Violin<YData, XData>.visible, Funnel<XData, YData>.visible, Waterfall<XData, YData>.visible, Image<ZData>.visible, Pie<LabelsData, ValuesData>.visible, Sunburst<ValuesData>.visible, Treemap<ValuesData>.visible, FunnelArea<LabelsData, ValuesData>.visible, Scatter3D<XData, YData, ZData>.visible, Surface<ZSurfaceData, XYData>.visible, Isosurface<XData, YData, ZData, ValueData>.visible, Volume<XYZData, ValueData>.visible, Mesh3D<XData, YData, ZData, IntensityData, VertexcolorData, FacecolorData>.visible, Cone<XYZData, UVWData>.visible, StreamTube<XYZData, UVWData>.visible, ScatterGeo<CoordinateData, LocationsData>.visible, Choropleth<LocationsData, ZData>.visible, ScatterGL<XData, YData>.visible, ScatterPlotMatrix.visible, PointCloud<XYData>.visible, HeatmapGL<ZData, XYData>.visible, ParallelCoordinates.visible, ParallelCategories.visible, ScatterMapbox<CoordinateData>.visible, ChoroplethMapbox<LocationsData, ZData>.visible, DensityMapbox<CoordinateData, ZData>.visible, Sankey.visible, Indicator.visible, Table<CellData>.visible, Carpet<XData, YData, AData, BData>.visible, ScatterCarpet<AData, BData>.visible, ContourCarpet<ZData, AData, BData>.visible, OHLC<XData, OHLCData>.visible, Candlestick<XData, OHLCData>.visible, ScatterPolar<RData, ThetaData>.visible, ScatterPolarGL<RData, ThetaData>.visible, BarPolar<RData, ThetaData>.visible.
    See more

    Declaration

    Swift

    public enum Visible : Encodable
  • Only relevant when the axis type is date.

    Sets the alignment of data points on the x axis.

    Note

    Used by Scatter<XData, YData>.xPeriodAlignment, Bar<XData, YData>.xPeriodAlignment, Box<YData, XData, QData>.xPeriodAlignment, Heatmap<ZData, XYData>.xPeriodAlignment, Contour<ZData, XData, YData>.xPeriodAlignment, Funnel<XData, YData>.xPeriodAlignment, Waterfall<XData, YData>.xPeriodAlignment, ScatterGL<XData, YData>.xPeriodAlignment, OHLC<XData, OHLCData>.xPeriodAlignment, Candlestick<XData, OHLCData>.xPeriodAlignment.
    See more

    Declaration

    Swift

    public enum XPeriodAlignment : String, Encodable
  • Only relevant when the axis type is date.

    Sets the alignment of data points on the y axis.

    Note

    Used by Scatter<XData, YData>.yPeriodAlignment, Bar<XData, YData>.yPeriodAlignment, Box<YData, XData, QData>.yPeriodAlignment, Heatmap<ZData, XYData>.yPeriodAlignment, Contour<ZData, XData, YData>.yPeriodAlignment, Funnel<XData, YData>.yPeriodAlignment, Waterfall<XData, YData>.yPeriodAlignment, ScatterGL<XData, YData>.yPeriodAlignment.
    See more

    Declaration

    Swift

    public enum YPeriodAlignment : String, Encodable
  • Sets the area to fill with a solid color.

    Defaults to none unless this trace is stacked, then it gets tonexty (tonextx) if orientation is v (h) Use with fillcolor if not none. tozerox and tozeroy fill to x=0 and y=0 respectively. tonextx and tonexty fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like tozerox and tozeroy. toself connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. tonext fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like toself if there is no trace before it. tonext should not be used if one trace does not enclose the other. Traces in a stackgroup will only fill to (or be filled to) other traces in the same group. With multiple stackgroups or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order.

    Note

    Used by Scatter<XData, YData>.fill, ScatterGL<XData, YData>.fill, ScatterPolarGL<RData, ThetaData>.fill.
    See more

    Declaration

    Swift

    public enum Fill : String, Encodable
  • Sets the marker symbol type.

    Adding 100 is equivalent to appending -open to a symbol name. Adding 200 is equivalent to appending -dot to a symbol name. Adding 300 is equivalent to appending -open-dot or dot-open to a symbol name.

    Note

    Used by GradientMarker.symbol, Box<YData, XData, QData>.SymbolicMarker.symbol, ScatterTernary<AData, BData, CData>.GradientMarker.symbol, Violin<YData, XData>.SymbolicMarker.symbol, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.symbol, ScatterGL<XData, YData>.SymbolicMarker.symbol, ScatterPlotMatrix.SymbolicMarker.symbol, ScatterCarpet<AData, BData>.GradientMarker.symbol, ScatterPolar<RData, ThetaData>.GradientMarker.symbol, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.symbol.
    See more

    Declaration

    Swift

    public enum Symbol : String, Encodable
  • Has an effect only if marker.size is set to a numerical array.

    Sets the rule for which the data in size is converted to pixels.

    Note

    Used by GradientMarker.sizeMode, ScatterTernary<AData, BData, CData>.GradientMarker.sizeMode, SymbolicMarker.sizeMode, ScatterGeo<CoordinateData, LocationsData>.GradientMarker.sizeMode, ScatterGL<XData, YData>.SymbolicMarker.sizeMode, ScatterPlotMatrix.SymbolicMarker.sizeMode, ScatterMapbox<CoordinateData>.SymbolicMarker.sizeMode, ScatterCarpet<AData, BData>.GradientMarker.sizeMode, ScatterPolar<RData, ThetaData>.GradientMarker.sizeMode, ScatterPolarGL<RData, ThetaData>.SymbolicMarker.sizeMode.
    See more

    Declaration

    Swift

    public enum SizeMode : String, Encodable
  • Specifies the location of the text.

    inside positions text inside, next to the bar end (rotated and scaled if needed). outside positions text outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. auto tries to position text inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside.

    Note

    Used by Bar<XData, YData>.textPosition, Funnel<XData, YData>.textPosition, Waterfall<XData, YData>.textPosition, Pie<LabelsData, ValuesData>.textPosition.
    See more

    Declaration

    Swift

    public enum AdjacentPosition : String, Encodable
  • Determines if texts are kept at center or start/end points in textposition inside mode.

    Note

    Used by Bar<XData, YData>.insideTextAnchor, Funnel<XData, YData>.insideTextAnchor, Waterfall<XData, YData>.insideTextAnchor.
    See more

    Declaration

    Swift

    public enum InsideTextAnchor : String, Encodable
  • Constrain the size of text inside or outside a bar to be no larger than the bar itself.

    Note

    Used by Bar<XData, YData>.constrainText, Funnel<XData, YData>.constrainText, Waterfall<XData, YData>.constrainText.
    See more

    Declaration

    Swift

    public enum ConstrainText : String, Encodable
  • If array, the heatmap’s x coordinates are given by x (the default behavior when x is provided).

    If scaled, the heatmap’s x coordinates are given by x0 and dx (the default behavior when x is not provided).

    Note

    Used by Heatmap<ZData, XYData>.xType, Heatmap<ZData, XYData>.yType, Contour<ZData, XData, YData>.xType, Contour<ZData, XData, YData>.yType, HeatmapGL<ZData, XYData>.xType, HeatmapGL<ZData, XYData>.yType.
    See more

    Declaration

    Swift

    public enum AxisType : String, Encodable
  • Specifies the binning function used for this histogram trace.

    If count, the histogram values are computed by counting the number of values lying inside each bin. If sum, avg, min, max, the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively.

    Note

    Used by Histogram<XData, YData>.binningFunction, Histogram2D<XData, YData, ZData>.binningFunction, Histogram2DContour<XData, YData, ZData>.binningFunction.
    See more

    Declaration

    Swift

    public enum BinningFunction : String, Encodable
  • Specifies the type of normalization used for this histogram trace.

    If *, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If *percent / probability, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If density, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If probability density, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1).

    Note

    Used by Histogram<XData, YData>.normalization, Histogram2D<XData, YData, ZData>.normalization, Histogram2DContour<XData, YData, ZData>.normalization.
    See more

    Declaration

    Swift

    public enum Normalization : String, Encodable
  • Sets the constraint operation.

    = keeps regions equal to value < and <= keep regions less than value > and >= keep regions greater than value [], (), [), and (] keep regions inside value[0] to value[1] ], *)(, *[ keep regions outside value[0] to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms.

    Note

    Used by Contours.operation, Contour<ZData, XData, YData>.Contours.operation, ContourCarpet<ZData, AData, BData>.Contours.operation.
    See more

    Declaration

    Swift

    public enum Operation : String, Encodable
  • Determines the line shape.

    With spline the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes.

    Note

    Used by ShapedSmoothDashedLine.shape, ScatterCarpet<AData, BData>.ShapedSmoothDashedLine.shape, ScatterPolar<RData, ThetaData>.ShapedSmoothDashedLine.shape.
    See more

    Declaration

    Swift

    public enum Shape : String, Encodable
  • Sets the area to fill with a solid color.

    Use with fillcolor if not none. scatterternary has a subset of the options available to scatter. toself connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. tonext fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like toself if there is no trace before it. tonext should not be used if one trace does not enclose the other.

    Note

    Used by ScatterTernary<AData, BData, CData>.fill, ScatterCarpet<AData, BData>.fill, ScatterPolar<RData, ThetaData>.fill.
    See more

    Declaration

    Swift

    public enum AreaFill : String, Encodable
  • Sets the dash style of the lines.

    Note

    Used by Scatter3D<XData, YData, ZData>.DashedMarkerLine.dash, ScatterGL<XData, YData>.ShapedDashedLine.dash, ScatterPolarGL<RData, ThetaData>.ShapedDashedLine.dash.
    See more

    Declaration

    Swift

    public enum Dash : String, Encodable
  • Specifies the ordering logic for the categories in the dimension.

    By default, plotly uses trace, which specifies the order that is present in the data supplied. Set categoryorder to category ascending or category descending if order should be determined by the alphanumerical order of the category names. Set categoryorder to array to derive the ordering from the attribute categoryarray. If a category is not found in the categoryarray array, the sorting behavior for that attribute will be identical to the trace mode. The unspecified categories will follow the categories in categoryarray.

    Note

    Used by ParallelCategories.Dimension.categoryOrder, Carpet<XData, YData, AData, BData>.AAxis.categoryOrder, Carpet<XData, YData, AData, BData>.BAxis.categoryOrder.
    See more

    Declaration

    Swift

    public enum CarpetCategoryOrder : String, Encodable
  • Sets the unit of input theta values.

    Has an effect only when on linear angular axes.

    Note

    Used by ScatterPolar<RData, ThetaData>.thetaUnit, ScatterPolarGL<RData, ThetaData>.thetaUnit, BarPolar<RData, ThetaData>.thetaUnit.
    See more

    Declaration

    Swift

    public enum ThetaUnit : String, Encodable
  • An empty dummy shorthand for a non-utilized generic Plotable type.

    This type is a placeholder that can be used in cases where you don’t use all generic types provided by a particular trace. It (hopefully) improves readability and clarifies intent of the source code in these situations.

    For example, the Box trace requires specification of three generic types for YData, XData and QData.

    let box = Box<[Double], Unused, Unused>(
        y: [1.9, 2.1, 2.2, 2.1]
    )
    

    Most of the time one uses either one of XY or Q, but not both at the same time. To create an instance, one would have to come up with some dummy type for XData and QData that conforms to the Plotable protocol. This very likely confuses the potential reader because the corresponding XData/QData attribute is never set and never used.

    Remark

    Remark The type is intentionally an enum to prevent incorrect use. It’s impossible to create an instance.
    See more

    Declaration

    Swift

    public enum Unused : Plotable