Layout
public struct Layout : Encodable
Specification of element arrangement on a Figure that applies to all traces.
-
Sets the default funnelarea slice colors.
Defaults to the main
colorwayused for trace colors. If you specify a new list here it can still be extended with lighter and darker colors, seeextendfunnelareacolors.Declaration
Swift
public var funnelAreaColorWay: ColorList? -
If
true, the funnelarea slice colors (whether given byfunnelareacolorwayor inherited fromcolorway) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker.This is intended to reduce the likelihood of reusing the same color when you have many slices, but you can set
falseto disable. Colors provided in the trace, usingmarker.colors, are never extended.Declaration
Swift
public var extendFunnelAreaColors: Bool?
-
Sets the default treemap slice colors.
Defaults to the main
colorwayused for trace colors. If you specify a new list here it can still be extended with lighter and darker colors, seeextendtreemapcolors.Declaration
Swift
public var treemapColorWay: ColorList? -
If
true, the treemap slice colors (whether given bytreemapcolorwayor inherited fromcolorway) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker.This is intended to reduce the likelihood of reusing the same color when you have many slices, but you can set
falseto disable. Colors provided in the trace, usingmarker.colors, are never extended.Declaration
Swift
public var extendTreemapColors: Bool?
-
Sets the default sunburst slice colors.
Defaults to the main
colorwayused for trace colors. If you specify a new list here it can still be extended with lighter and darker colors, seeextendsunburstcolors.Declaration
Swift
public var sunburstColorWay: ColorList? -
If
true, the sunburst slice colors (whether given bysunburstcolorwayor inherited fromcolorway) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker.This is intended to reduce the likelihood of reusing the same color when you have many slices, but you can set
falseto disable. Colors provided in the trace, usingmarker.colors, are never extended.Declaration
Swift
public var extendSunburstColors: Bool?
-
hiddenlabels is the funnelarea & pie chart analog of visible:‘legendonly’ but it can contain many labels, and can simultaneously hide slices from several pies/funnelarea charts
Declaration
Swift
public var hiddenLabels: [Double]? -
Sets the default pie slice colors.
Defaults to the main
colorwayused for trace colors. If you specify a new list here it can still be extended with lighter and darker colors, seeextendpiecolors.Declaration
Swift
public var pieColorWay: ColorList? -
If
true, the pie slice colors (whether given bypiecolorwayor inherited fromcolorway) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker.This is intended to reduce the likelihood of reusing the same color when you have many slices, but you can set
falseto disable. Colors provided in the trace, usingmarker.colors, are never extended.Declaration
Swift
public var extendPieColors: Bool?
-
Determines how bars at the same location coordinate are displayed on the graph.
With group, the bars are plotted next to one another centered around the shared location. With overlay, the bars are plotted over one another, you might need to an opacity to see multiple bars.
See moreDeclaration
Swift
public enum WaterfallMode : String, Encodable -
Determines how bars at the same location coordinate are displayed on the graph.
With group, the bars are plotted next to one another centered around the shared location. With overlay, the bars are plotted over one another, you might need to an opacity to see multiple bars.
Declaration
Swift
public var waterfallMode: WaterfallMode? -
Sets the gap (in plot fraction) between bars of adjacent location coordinates.
Declaration
Swift
public var waterfallGap: Double? -
Sets the gap (in plot fraction) between bars of the same location coordinate.
Declaration
Swift
public var waterfallGroupGap: Double?
-
Determines how bars at the same location coordinate are displayed on the graph.
With stack, the bars are stacked on top of one another With group, the bars are plotted next to one another centered around the shared location. With overlay, the bars are plotted over one another, you might need to an opacity to see multiple bars.
See moreDeclaration
Swift
public enum FunnelMode : String, Encodable -
Determines how bars at the same location coordinate are displayed on the graph.
With stack, the bars are stacked on top of one another With group, the bars are plotted next to one another centered around the shared location. With overlay, the bars are plotted over one another, you might need to an opacity to see multiple bars.
Declaration
Swift
public var funnelMode: FunnelMode? -
Sets the gap (in plot fraction) between bars of adjacent location coordinates.
Declaration
Swift
public var funnelGap: Double? -
Sets the gap (in plot fraction) between bars of the same location coordinate.
Declaration
Swift
public var funnelGroupGap: Double?
-
Determines how violins at the same location coordinate are displayed on the graph.
If group, the violins are plotted next to one another centered around the shared location. If overlay, the violins are plotted over one another, you might need to set opacity to see them multiple violins. Has no effect on traces that have width set.
See moreDeclaration
Swift
public enum ViolinMode : String, Encodable -
Determines how violins at the same location coordinate are displayed on the graph.
If group, the violins are plotted next to one another centered around the shared location. If overlay, the violins are plotted over one another, you might need to set opacity to see them multiple violins. Has no effect on traces that have width set.
Declaration
Swift
public var violinMode: ViolinMode? -
Sets the gap (in plot fraction) between violins of adjacent location coordinates.
Has no effect on traces that have width set.
Declaration
Swift
public var violinGap: Double? -
Sets the gap (in plot fraction) between violins of the same location coordinate.
Has no effect on traces that have width set.
Declaration
Swift
public var violinGroupGap: Double?
-
Determines how boxes at the same location coordinate are displayed on the graph.
If group, the boxes are plotted next to one another centered around the shared location. If overlay, the boxes are plotted over one another, you might need to set opacity to see them multiple boxes. Has no effect on traces that have width set.
See moreDeclaration
Swift
public enum BoxMode : String, Encodable -
Determines how boxes at the same location coordinate are displayed on the graph.
If group, the boxes are plotted next to one another centered around the shared location. If overlay, the boxes are plotted over one another, you might need to set opacity to see them multiple boxes. Has no effect on traces that have width set.
Declaration
Swift
public var boxMode: BoxMode? -
Sets the gap (in plot fraction) between boxes of adjacent location coordinates.
Has no effect on traces that have width set.
Declaration
Swift
public var boxGap: Double? -
Sets the gap (in plot fraction) between boxes of the same location coordinate.
Has no effect on traces that have width set.
Declaration
Swift
public var boxGroupGap: Double?
-
Determines how bars at the same location coordinate are displayed on the graph.
With stack, the bars are stacked on top of one another With relative, the bars are stacked on top of one another, with negative values below the axis, positive values above With group, the bars are plotted next to one another centered around the shared location. With overlay, the bars are plotted over one another, you might need to an opacity to see multiple bars.
See moreDeclaration
Swift
public enum BarMode : String, Encodable -
Determines how bars at the same location coordinate are displayed on the graph.
With stack, the bars are stacked on top of one another With relative, the bars are stacked on top of one another, with negative values below the axis, positive values above With group, the bars are plotted next to one another centered around the shared location. With overlay, the bars are plotted over one another, you might need to an opacity to see multiple bars.
Declaration
Swift
public var barMode: BarMode? -
Sets the normalization for bar traces on the graph.
With fraction, the value of each bar is divided by the sum of all values at that location coordinate. percent is the same but multiplied by 100 to show percentages.
See moreDeclaration
Swift
public enum BarNormalization : String, Encodable -
Sets the normalization for bar traces on the graph.
With fraction, the value of each bar is divided by the sum of all values at that location coordinate. percent is the same but multiplied by 100 to show percentages.
Declaration
Swift
public var barNormalization: BarNormalization? -
Sets the gap (in plot fraction) between bars of adjacent location coordinates.
Declaration
Swift
public var barGap: Double? -
Sets the gap (in plot fraction) between bars of the same location coordinate.
Declaration
Swift
public var barGroupGap: Double?
-
Sets the global font.
Note that fonts used in traces and other layout components inherit from the global font.
Declaration
Swift
public var font: Font? -
Undocumented
Declaration
Swift
public var title: Title? -
Undocumented
See moreDeclaration
Swift
public struct UniformText : Encodable -
Undocumented
Declaration
Swift
public var uniformText: UniformText? -
Determines whether or not a layout width or height that has been left undefined by the user is initialized on each relayout.
Note that, regardless of this attribute, an undefined layout width or height is always initialized on the first call to plot.
Declaration
Swift
public var autoSize: Bool? -
Sets the plot’s width (in px).
Declaration
Swift
public var width: Double? -
Sets the plot’s height (in px).
Declaration
Swift
public var height: Double? -
Undocumented
See moreDeclaration
Swift
public struct Margin : Encodable -
Undocumented
Declaration
Swift
public var margin: Margin? -
Placeholder for exporting automargin-impacting values namely
margin.t,margin.b,margin.landmargin.rin full-json mode.Declaration
Swift
public var computed: Anything? -
Sets the background color of the paper where the graph is drawn.
Declaration
Swift
public var paperBackgroundColor: Color? -
Sets the background color of the plotting area in-between x and y axes.
Declaration
Swift
public var plotBackgroundColor: Color? -
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
typedetection. This is the default value; however it could be overridden for individual axes.Declaration
Swift
public var autoTypeNumbers: AutoTypeNumbers? -
Sets the decimal and thousand separators.
For example, . * puts a ‘.’ before decimals and a space between thousands. In English locales, dflt is *., but other locales may alter this default.
Declaration
Swift
public var separators: String? -
Determines whether or not a text link citing the data source is placed at the bottom-right cored of the figure.
Has only an effect only on graphs that have been generated via forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise).
Declaration
Swift
public var hideSources: Bool? -
Determines whether or not a legend is drawn.
Default is
trueif there is a trace to show and any of these: a) Two or more traces would by default be shown in the legend. b) One pie trace is shown in the legend. c) One trace is explicitly given withshowlegend: true.Declaration
Swift
public var showLegend: Bool? -
Sets the default trace colors.
Declaration
Swift
public var colorWay: ColorList?
-
If provided, a changed value tells
Plotly.reactthat one or more data arrays has changed.This way you can modify arrays in-place rather than making a complete new copy for an incremental change. If NOT provided,
Plotly.reactassumes that data arrays are being treated as immutable, thus any data array with a different identity from its predecessor contains new data.Declaration
Swift
public var dataRevision: Anything? -
Used to allow user interactions with the plot to persist after
Plotly.reactcalls that are unaware of these interactions.If
uirevisionis omitted, or if it is given and it changed from the previousPlotly.reactcall, the exact new figure is used. Ifuirevisionis truthy and did NOT change, any attribute that has been affected by user interactions and did not receive a different value in the new figure will keep the interaction value.layout.uirevisionattribute serves as the default foruirevisionattributes in various sub-containers. For finer control you can set these sub-attributes directly. For example, if your app separately controls the data on the x and y axes you might setxaxis.uirevision=*time*andyaxis.uirevision=*cost*. Then if only the y data is changed, you can updateyaxis.uirevision=*quantity*and the y axis range will reset but the x axis range will retain any user-driven zoom.Declaration
Swift
public var uiRevision: Anything? -
Controls persistence of user-driven changes in
editable: trueconfiguration, other than trace names and axis titles.Defaults to
layout.uirevision.Declaration
Swift
public var editRevision: Anything? -
Controls persistence of user-driven changes in selected points from all traces.
Declaration
Swift
public var selectionRevision: Anything? -
Default attributes to be applied to the plot.
Templates can be created from existing plots using
Plotly.makeTemplate, or created manually. They should be objects with format:{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}layoutTemplateandtraceTemplateare objects matching the attribute structure oflayoutand a data trace. Trace templates are applied cyclically to traces of each type. Container arrays (egannotations) have special handling: An object ending indefaults(egannotationdefaults) is applied to each array item. But if an item has atemplateitemnamekey we look in the template array for an item with matchingnameand apply that instead. If no matchingnameis found we mark the item invisible. Any named template item not referenced is appended to the end of the array, so you can use this for a watermark annotation or a logo image, for example. To omit one of these items on the plot, make an item with matchingtemplateitemnameandvisible: false.Declaration
Swift
public var template: Anything?
-
Undocumented
See moreDeclaration
Swift
public struct ModeBar : Encodable -
Undocumented
Declaration
Swift
public var modeBar: ModeBar? -
Undocumented
See moreDeclaration
Swift
public struct NewShape : Encodable -
Undocumented
Declaration
Swift
public var newShape: NewShape? -
Undocumented
See moreDeclaration
Swift
public struct ActiveShape : Encodable -
Undocumented
Declaration
Swift
public var activeShape: ActiveShape? -
Assigns extra meta information that can be used in various
textattributes.Attributes such as the graph, axis and colorbar
title.text, annotationtexttrace.namein legend items,rangeselector,updatemenusandsliderslabeltext all supportmeta. One can accessmetafields using template strings:%{meta[i]}whereiis the index of themetaitem in question.metacan also be an object for example{key: value}which can be accessed %{meta[key]}. -
Sets transition options used during Plotly.react updates.
See moreDeclaration
Swift
public struct Transition : Encodable -
Sets transition options used during Plotly.react updates.
Declaration
Swift
public var transition: Transition?
-
Determines the mode of single click interactions.
event is the default value and emits the
See moreplotly_clickevent. In addition this mode emits theplotly_selectedevent in drag modes lasso and select, but with no event data attached (kept for compatibility reasons). The select flag enables selecting single data points via click. This mode also supports persistent selections, meaning that pressing Shift while clicking, adds to / subtracts from an existing selection. select withhovermode: x can be confusing, consider explicitly settinghovermode: closest when using this feature. Selection events are sent accordingly as long as event flag is set as well. When the event flag is missing,plotly_clickandplotly_selectedevents are not fired.Declaration
Swift
public struct ClickMode : OptionSet, Encodable -
Determines the mode of single click interactions.
event is the default value and emits the
plotly_clickevent. In addition this mode emits theplotly_selectedevent in drag modes lasso and select, but with no event data attached (kept for compatibility reasons). The select flag enables selecting single data points via click. This mode also supports persistent selections, meaning that pressing Shift while clicking, adds to / subtracts from an existing selection. select withhovermode: x can be confusing, consider explicitly settinghovermode: closest when using this feature. Selection events are sent accordingly as long as event flag is set as well. When the event flag is missing,plotly_clickandplotly_selectedevents are not fired.Declaration
Swift
public var clickMode: ClickMode? -
Determines the mode of drag interactions.
select and lasso apply only to scatter traces with markers or text. orbit and turntable apply only to 3D scenes.
See moreDeclaration
Swift
public enum DragMode : Encodable -
Determines the mode of drag interactions.
select and lasso apply only to scatter traces with markers or text. orbit and turntable apply only to 3D scenes.
Declaration
Swift
public var dragMode: DragMode? -
Determines the mode of hover interactions.
If closest, a single hoverlabel will appear for the closest point within the
See morehoverdistance. If x (or y), multiple hoverlabels will appear for multiple points at the closest x- (or y-) coordinate within thehoverdistance, with the caveat that no more than one hoverlabel will appear per trace. If x unified (or y unified), a single hoverlabel will appear multiple points at the closest x- (or y-) coordinate within thehoverdistancewith the caveat that no more than one hoverlabel will appear per trace. In this mode, spikelines are enabled by default perpendicular to the specified axis. If false, hover interactions are disabled. Ifclickmodeincludes the select flag,hovermodedefaults to closest. Ifclickmodelacks the select flag, it defaults to x or y (depending on the trace’sorientationvalue) for plots based on cartesian coordinates. For anything else the default value is closest.Declaration
Swift
public enum HoverMode : Encodable -
Determines the mode of hover interactions.
If closest, a single hoverlabel will appear for the closest point within the
hoverdistance. If x (or y), multiple hoverlabels will appear for multiple points at the closest x- (or y-) coordinate within thehoverdistance, with the caveat that no more than one hoverlabel will appear per trace. If x unified (or y unified), a single hoverlabel will appear multiple points at the closest x- (or y-) coordinate within thehoverdistancewith the caveat that no more than one hoverlabel will appear per trace. In this mode, spikelines are enabled by default perpendicular to the specified axis. If false, hover interactions are disabled. Ifclickmodeincludes the select flag,hovermodedefaults to closest. Ifclickmodelacks the select flag, it defaults to x or y (depending on the trace’sorientationvalue) for plots based on cartesian coordinates. For anything else the default value is closest.Declaration
Swift
public var hoverMode: HoverMode? -
Sets the default distance (in pixels) to look for data to add hover labels (-1 means no cutoff, 0 means no looking for data).
This is only a real distance for hovering on point-like objects, like scatter points. For area-like objects (bars, scatter fills, etc) hovering is on inside the area and off outside, but these objects will not supersede hover on point-like objects in case of conflict.
Declaration
Swift
public var hoverDistance: Int? -
Sets the default distance (in pixels) to look for data to draw spikelines to (-1 means no cutoff, 0 means no looking for data).
As with hoverdistance, distance does not apply to area-like objects. In addition, some objects can be hovered on but will not generate spikelines, such as scatter fills.
Declaration
Swift
public var spikeDistance: Int? -
Undocumented
Declaration
Swift
public var hoverLabel: HoverLabel? -
When
dragmodeis set to select, this limits the selection of the drag to horizontal, vertical or diagonal.h only allows horizontal selection, v only vertical, d only diagonal and any sets no limit.
See moreDeclaration
Swift
public enum SelectDirection : String, Encodable -
When
dragmodeis set to select, this limits the selection of the drag to horizontal, vertical or diagonal.h only allows horizontal selection, v only vertical, d only diagonal and any sets no limit.
Declaration
Swift
public var selectDirection: SelectDirection?
-
Undocumented
See moreDeclaration
Swift
public struct Grid : Encodable -
Undocumented
Declaration
Swift
public var grid: Grid? -
Sets the default calendar system to use for interpreting and displaying dates throughout the plot.
Declaration
Swift
public var calendar: Calendar? -
Undocumented
Declaration
Swift
public var xAxis: [XAxis] -
Undocumented
Declaration
Swift
public var yAxis: [YAxis] -
Undocumented
Declaration
Swift
public var ternary: [Ternary] -
Undocumented
Declaration
Swift
public var scene: [Scene] -
Undocumented
Declaration
Swift
public var geo: [Geo] -
Undocumented
Declaration
Swift
public var mapbox: [Mapbox] -
Undocumented
Declaration
Swift
public var polar: [Polar]
-
Undocumented
See moreDeclaration
Swift
public struct Legend : Encodable -
Undocumented
Declaration
Swift
public var legend: Legend? -
Undocumented
See moreDeclaration
Swift
public struct Annotation : Encodable -
Undocumented
Declaration
Swift
public var annotations: [Annotation]? -
Undocumented
See moreDeclaration
Swift
public struct Shape : Encodable -
Undocumented
Declaration
Swift
public var shapes: [Shape]? -
Undocumented
See moreDeclaration
Swift
public struct Image : Encodable -
Undocumented
Declaration
Swift
public var images: [Image]? -
Undocumented
See moreDeclaration
Swift
public struct UpdateMenu : Encodable -
Undocumented
Declaration
Swift
public var updateMenus: [UpdateMenu]? -
Undocumented
See moreDeclaration
Swift
public struct Slider : Encodable -
Undocumented
Declaration
Swift
public var sliders: [Slider]?
-
Undocumented
See moreDeclaration
Swift
public struct ColorMap : Encodable -
Undocumented
Declaration
Swift
public var colorScale: ColorMap? -
Undocumented
Declaration
Swift
public var colorAxis: [ColorAxis] -
init(funnelAreaColorWay:extendFunnelAreaColors: treemapColorWay: extendTreemapColors: sunburstColorWay: extendSunburstColors: hiddenLabels: pieColorWay: extendPieColors: waterfallMode: waterfallGap: waterfallGroupGap: funnelMode: funnelGap: funnelGroupGap: violinMode: violinGap: violinGroupGap: boxMode: boxGap: boxGroupGap: barMode: barNormalization: barGap: barGroupGap: font: title: uniformText: autoSize: width: height: margin: computed: paperBackgroundColor: plotBackgroundColor: autoTypeNumbers: separators: hideSources: showLegend: colorWay: dataRevision: uiRevision: editRevision: selectionRevision: template: modeBar: newShape: activeShape: meta: transition: clickMode: dragMode: hoverMode: hoverDistance: spikeDistance: hoverLabel: selectDirection: grid: calendar: xAxis: yAxis: ternary: scene: geo: mapbox: polar: legend: annotations: shapes: images: updateMenus: sliders: colorScale: colorAxis: ) Creates
Layoutobject with specified properties.Declaration
Swift
public init(funnelAreaColorWay: ColorList? = nil, extendFunnelAreaColors: Bool? = nil, treemapColorWay: ColorList? = nil, extendTreemapColors: Bool? = nil, sunburstColorWay: ColorList? = nil, extendSunburstColors: Bool? = nil, hiddenLabels: [Double]? = nil, pieColorWay: ColorList? = nil, extendPieColors: Bool? = nil, waterfallMode: WaterfallMode? = nil, waterfallGap: Double? = nil, waterfallGroupGap: Double? = nil, funnelMode: FunnelMode? = nil, funnelGap: Double? = nil, funnelGroupGap: Double? = nil, violinMode: ViolinMode? = nil, violinGap: Double? = nil, violinGroupGap: Double? = nil, boxMode: BoxMode? = nil, boxGap: Double? = nil, boxGroupGap: Double? = nil, barMode: BarMode? = nil, barNormalization: BarNormalization? = nil, barGap: Double? = nil, barGroupGap: Double? = nil, font: Font? = nil, title: Title? = nil, uniformText: UniformText? = nil, autoSize: Bool? = nil, width: Double? = nil, height: Double? = nil, margin: Margin? = nil, computed: Anything? = nil, paperBackgroundColor: Color? = nil, plotBackgroundColor: Color? = nil, autoTypeNumbers: AutoTypeNumbers? = nil, separators: String? = nil, hideSources: Bool? = nil, showLegend: Bool? = nil, colorWay: ColorList? = nil, dataRevision: Anything? = nil, uiRevision: Anything? = nil, editRevision: Anything? = nil, selectionRevision: Anything? = nil, template: Anything? = nil, modeBar: ModeBar? = nil, newShape: NewShape? = nil, activeShape: ActiveShape? = nil, meta: Data<Anything>? = nil, transition: Transition? = nil, clickMode: ClickMode? = nil, dragMode: DragMode? = nil, hoverMode: HoverMode? = nil, hoverDistance: Int? = nil, spikeDistance: Int? = nil, hoverLabel: HoverLabel? = nil, selectDirection: SelectDirection? = nil, grid: Grid? = nil, calendar: Calendar? = nil, xAxis: [XAxis] = [], yAxis: [YAxis] = [], ternary: [Ternary] = [], scene: [Scene] = [], geo: [Geo] = [], mapbox: [Mapbox] = [], polar: [Polar] = [], legend: Legend? = nil, annotations: [Annotation]? = nil, shapes: [Shape]? = nil, images: [Image]? = nil, updateMenus: [UpdateMenu]? = nil, sliders: [Slider]? = nil, colorScale: ColorMap? = nil, colorAxis: [ColorAxis] = [])Parameters
funnelAreaColorWaySets the default funnelarea slice colors.
extendFunnelAreaColorsIf
true, the funnelarea slice colors (whether given byfunnelareacolorwayor inherited fromcolorway) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker.treemapColorWaySets the default treemap slice colors.
extendTreemapColorsIf
true, the treemap slice colors (whether given bytreemapcolorwayor inherited fromcolorway) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker.sunburstColorWaySets the default sunburst slice colors.
extendSunburstColorsIf
true, the sunburst slice colors (whether given bysunburstcolorwayor inherited fromcolorway) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker.hiddenLabelshiddenlabels is the funnelarea & pie chart analog of visible:‘legendonly’ but it can contain many labels, and can simultaneously hide slices from several pies/funnelarea charts
pieColorWaySets the default pie slice colors.
extendPieColorsIf
true, the pie slice colors (whether given bypiecolorwayor inherited fromcolorway) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker.waterfallModeDetermines how bars at the same location coordinate are displayed on the graph.
waterfallGapSets the gap (in plot fraction) between bars of adjacent location coordinates.
waterfallGroupGapSets the gap (in plot fraction) between bars of the same location coordinate.
funnelModeDetermines how bars at the same location coordinate are displayed on the graph.
funnelGapSets the gap (in plot fraction) between bars of adjacent location coordinates.
funnelGroupGapSets the gap (in plot fraction) between bars of the same location coordinate.
violinModeDetermines how violins at the same location coordinate are displayed on the graph.
violinGapSets the gap (in plot fraction) between violins of adjacent location coordinates.
violinGroupGapSets the gap (in plot fraction) between violins of the same location coordinate.
boxModeDetermines how boxes at the same location coordinate are displayed on the graph.
boxGapSets the gap (in plot fraction) between boxes of adjacent location coordinates.
boxGroupGapSets the gap (in plot fraction) between boxes of the same location coordinate.
barModeDetermines how bars at the same location coordinate are displayed on the graph.
barNormalizationSets the normalization for bar traces on the graph.
barGapSets the gap (in plot fraction) between bars of adjacent location coordinates.
barGroupGapSets the gap (in plot fraction) between bars of the same location coordinate.
fontSets the global font.
titleuniformTextautoSizeDetermines whether or not a layout width or height that has been left undefined by the user is initialized on each relayout.
widthSets the plot’s width (in px).
heightSets the plot’s height (in px).
margincomputedPlaceholder for exporting automargin-impacting values namely
margin.t,margin.b,margin.landmargin.rin full-json mode.paperBackgroundColorSets the background color of the paper where the graph is drawn.
plotBackgroundColorSets the background color of the plotting area in-between x and y axes.
autoTypeNumbersUsing strict a numeric string in trace data is not converted to a number.
separatorsSets the decimal and thousand separators.
hideSourcesDetermines whether or not a text link citing the data source is placed at the bottom-right cored of the figure.
showLegendDetermines whether or not a legend is drawn.
colorWaySets the default trace colors.
dataRevisionIf provided, a changed value tells
Plotly.reactthat one or more data arrays has changed.uiRevisionUsed to allow user interactions with the plot to persist after
Plotly.reactcalls that are unaware of these interactions.editRevisionControls persistence of user-driven changes in
editable: trueconfiguration, other than trace names and axis titles.selectionRevisionControls persistence of user-driven changes in selected points from all traces.
templateDefault attributes to be applied to the plot.
modeBarnewShapeactiveShapemetaAssigns extra meta information that can be used in various
textattributes.transitionSets transition options used during Plotly.react updates.
clickModeDetermines the mode of single click interactions.
dragModeDetermines the mode of drag interactions.
hoverModeDetermines the mode of hover interactions.
hoverDistanceSets the default distance (in pixels) to look for data to add hover labels (-1 means no cutoff, 0 means no looking for data).
spikeDistanceSets the default distance (in pixels) to look for data to draw spikelines to (-1 means no cutoff, 0 means no looking for data).
hoverLabelselectDirectionWhen
dragmodeis set to select, this limits the selection of the drag to horizontal, vertical or diagonal.gridcalendarSets the default calendar system to use for interpreting and displaying dates throughout the plot.
xAxisyAxisternaryscenegeomapboxpolarlegendannotationsshapesimagesupdateMenussliderscolorScalecolorAxis -
Encodes the object in a format compatible with Plotly.
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
Install in Dash
Layout Structure Reference