Layout
Properties
An annotation is a text element that can be placed anywhere in the plot. It can be positioned with respect to relative coordinates in the plot or with respect to the actual data coordinates of the graph. Annotations can be shown with or without an arrow.
Sets the gap (in plot fraction) between bars of the same location coordinate. Default: 0.
Enumerated, one of ( "stack" | "group" | "overlay" | "relative" ) 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. Default: "group".
Sets the gap (in plot fraction) between boxes of the same location coordinate. Has no effect on traces that have "width" set. Default: 0.3
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.
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. Default: 20.
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 the hoverdistance
, 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 the hoverdistance
with 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. If clickmode
includes the "select" flag, hovermode
defaults to "closest". If clickmode
lacks the "select" flag, it defaults to "x" or "y" (depending on the trace's orientation
value) for plots based on cartesian coordinates. For anything else the default value is "closest".
Sets the background color of the paper where the graph is drawn. Default: #fff.
Sets the background color of the plotting area in-between x and y axes. Default: #fff.
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.
Determines whether or not a legend is drawn. Default is true
if 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 with showlegend: true
.
Sets the gap (in plot fraction) between violins of the same location coordinate. Has no effect on traces that have "width" set. Default: 0.3
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.
Functions
A safe Number ray
A safe Number range
Convert any type-safe configurator to json string