plotly.graph_objects.layout.template.data package¶
-
class
plotly.graph_objects.layout.template.data.Bar(arg=None, alignmentgroup=None, base=None, basesrc=None, cliponaxis=None, constraintext=None, customdata=None, customdatasrc=None, dx=None, dy=None, error_x=None, error_y=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, insidetextanchor=None, insidetextfont=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, marker=None, meta=None, metasrc=None, name=None, offset=None, offsetgroup=None, offsetsrc=None, opacity=None, orientation=None, outsidetextfont=None, selected=None, selectedpoints=None, showlegend=None, stream=None, text=None, textangle=None, textfont=None, textposition=None, textpositionsrc=None, textsrc=None, texttemplate=None, texttemplatefallback=None, texttemplatesrc=None, uid=None, uirevision=None, unselected=None, visible=None, width=None, widthsrc=None, x=None, x0=None, xaxis=None, xcalendar=None, xhoverformat=None, xperiod=None, xperiod0=None, xperiodalignment=None, xsrc=None, y=None, y0=None, yaxis=None, ycalendar=None, yhoverformat=None, yperiod=None, yperiod0=None, yperiodalignment=None, ysrc=None, zorder=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
alignmentgroup¶ Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently.
- The ‘alignmentgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
base¶ Sets where the bar base is drawn (in position axis units). In “stack” or “relative” barmode, traces that set “base” will be excluded and drawn in “overlay” mode instead.
The ‘base’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
basesrc¶ Sets the source reference on Chart Studio Cloud for
base.The ‘basesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
cliponaxis¶ Determines whether the text nodes are clipped about the subplot axes. To show the text nodes above axis lines and tick labels, make sure to set
xaxis.layerandyaxis.layerto below traces.- The ‘cliponaxis’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
constraintext¶ Constrain the size of text inside or outside a bar to be no larger than the bar itself.
- The ‘constraintext’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘inside’, ‘outside’, ‘both’, ‘none’]
- Returns
- Return type
Any
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
dx¶ Sets the x coordinate step. See
x0for more info.- The ‘dx’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
dy¶ Sets the y coordinate step. See
y0for more info.- The ‘dy’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
error_x¶ The ‘error_x’ property is an instance of ErrorX that may be specified as:
An instance of
plotly.graph_objects.bar.ErrorXA dict of string/value properties that will be passed to the ErrorX constructor
- Returns
- Return type
-
property
error_y¶ The ‘error_y’ property is an instance of ErrorY that may be specified as:
An instance of
plotly.graph_objects.bar.ErrorYA dict of string/value properties that will be passed to the ErrorY constructor
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.bar.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablesvalueandlabel. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace’s (x,y) coordinates. To be seen, trace
hoverinfomust contain a “text” flag.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
insidetextanchor¶ Determines if texts are kept at center or start/end points in
textposition“inside” mode.- The ‘insidetextanchor’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘end’, ‘middle’, ‘start’]
- Returns
- Return type
Any
-
property
insidetextfont¶ Sets the font used for
textlying inside the bar.The ‘insidetextfont’ property is an instance of Insidetextfont that may be specified as:
An instance of
plotly.graph_objects.bar.InsidetextfontA dict of string/value properties that will be passed to the Insidetextfont constructor
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.bar.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.bar.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
offset¶ Shifts the position where the bar is drawn (in position axis units). In “group” barmode, traces that set “offset” will be excluded and drawn in “overlay” mode instead.
- The ‘offset’ property is a number and may be specified as:
An int or float
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
offsetgroup¶ Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up.
- The ‘offsetgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
offsetsrc¶ Sets the source reference on Chart Studio Cloud for
offset.The ‘offsetsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
orientation¶ Sets the orientation of the bars. With “v” (“h”), the value of the each bar spans along the vertical (horizontal).
- The ‘orientation’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘v’, ‘h’]
- Returns
- Return type
Any
-
property
outsidetextfont¶ Sets the font used for
textlying outside the bar.The ‘outsidetextfont’ property is an instance of Outsidetextfont that may be specified as:
An instance of
plotly.graph_objects.bar.OutsidetextfontA dict of string/value properties that will be passed to the Outsidetextfont constructor
- Returns
- Return type
-
property
selected¶ The ‘selected’ property is an instance of Selected that may be specified as:
An instance of
plotly.graph_objects.bar.SelectedA dict of string/value properties that will be passed to the Selected constructor
- Returns
- Return type
-
property
selectedpoints¶ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselectedare turned on for all points, whereas, any other non-array values means no selection all where theselectedandunselectedstyles have no effect.The ‘selectedpoints’ property accepts values of any type
- Returns
- Return type
Any
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.bar.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace’s (x,y) coordinates. If trace
hoverinfocontains a “text” flag and “hovertext” is not set, these elements will be seen in the hover labels.- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textangle¶ Sets the angle of the tick labels with respect to the bar. For example, a
tickangleof -90 draws the tick labels vertically. With “auto” the texts may automatically be rotated to fit with the maximum size in bars.The ‘textangle’ property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this range are converted to the equivalent value (e.g. 270 is converted to -90).
- Returns
- Return type
int|float
-
property
textfont¶ Sets the font used for
text.The ‘textfont’ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.bar.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
textposition¶ Specifies the location of the
text. “inside” positionstextinside, next to the bar end (rotated and scaled if needed). “outside” positionstextoutside, 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 positiontextinside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If “none”, no text appears.- The ‘textposition’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘inside’, ‘outside’, ‘auto’, ‘none’]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
textpositionsrc¶ Sets the source reference on Chart Studio Cloud for
textposition.The ‘textpositionsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
texttemplate¶ Template string used for rendering the information text that appears on points. Note that this will override
textinfo. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablesvalueandlabel.- The ‘texttemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
texttemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘texttemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
texttemplatesrc¶ Sets the source reference on Chart Studio Cloud for
texttemplate.The ‘texttemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
unselected¶ The ‘unselected’ property is an instance of Unselected that may be specified as:
An instance of
plotly.graph_objects.bar.UnselectedA dict of string/value properties that will be passed to the Unselected constructor
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
width¶ Sets the bar width (in position axis units).
- The ‘width’ property is a number and may be specified as:
An int or float in the interval [0, inf]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
widthsrc¶ Sets the source reference on Chart Studio Cloud for
width.The ‘widthsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
x¶ Sets the x coordinates.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
x0¶ Alternate to
x. Builds a linear space of x coordinates. Use withdxwherex0is the starting coordinate anddxthe step.The ‘x0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xcalendar¶ Sets the calendar system to use with
xdate data.- The ‘xcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the x axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘xperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the x0 axis. Whenx0periodis round number of weeks, thex0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘xperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the x axis.- The ‘xperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
y¶ Sets the y coordinates.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
y0¶ Alternate to
y. Builds a linear space of y coordinates. Use withdywherey0is the starting coordinate anddythe step.The ‘y0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
ycalendar¶ Sets the calendar system to use with
ydate data.- The ‘ycalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
yperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the y axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘yperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
yperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the y0 axis. Wheny0periodis round number of weeks, they0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘yperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the y axis.- The ‘yperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Barpolar(arg=None, base=None, basesrc=None, customdata=None, customdatasrc=None, dr=None, dtheta=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, marker=None, meta=None, metasrc=None, name=None, offset=None, offsetsrc=None, opacity=None, r=None, r0=None, rsrc=None, selected=None, selectedpoints=None, showlegend=None, stream=None, subplot=None, text=None, textsrc=None, theta=None, theta0=None, thetasrc=None, thetaunit=None, uid=None, uirevision=None, unselected=None, visible=None, width=None, widthsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
base¶ Sets where the bar base is drawn (in radial axis units). In “stack” barmode, traces that set “base” will be excluded and drawn in “overlay” mode instead.
The ‘base’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
basesrc¶ Sets the source reference on Chart Studio Cloud for
base.The ‘basesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
dr¶ Sets the r coordinate step.
- The ‘dr’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
dtheta¶ Sets the theta coordinate step. By default, the
dthetastep equals the subplot’s period divided by the length of thercoordinates.- The ‘dtheta’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘r’, ‘theta’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘r+theta’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.barpolar.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.barpolar.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.barpolar.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
offset¶ Shifts the angular position where the bar is drawn (in “thetatunit” units).
- The ‘offset’ property is a number and may be specified as:
An int or float
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
offsetsrc¶ Sets the source reference on Chart Studio Cloud for
offset.The ‘offsetsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
r¶ Sets the radial coordinates
The ‘r’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
r0¶ Alternate to
r. Builds a linear space of r coordinates. Use withdrwherer0is the starting coordinate anddrthe step.The ‘r0’ property accepts values of any type
- Returns
- Return type
Any
-
property
rsrc¶ Sets the source reference on Chart Studio Cloud for
r.The ‘rsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
selected¶ The ‘selected’ property is an instance of Selected that may be specified as:
An instance of
plotly.graph_objects.barpolar.SelectedA dict of string/value properties that will be passed to the Selected constructor
- Returns
- Return type
-
property
selectedpoints¶ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselectedare turned on for all points, whereas, any other non-array values means no selection all where theselectedandunselectedstyles have no effect.The ‘selectedpoints’ property accepts values of any type
- Returns
- Return type
Any
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.barpolar.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
subplot¶ Sets a reference between this trace’s data coordinates and a polar subplot. If “polar” (the default value), the data refer to
layout.polar. If “polar2”, the data refer tolayout.polar2, and so on.The ‘subplot’ property is an identifier of a particular subplot, of type ‘polar’, that may be specified as:
the string ‘polar’ optionally followed by an integer >= 1 (e.g. ‘polar’, ‘polar1’, ‘polar2’, ‘polar3’, etc.)
- Returns
- Return type
-
property
text¶ Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace’s coordinates.
- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
theta¶ Sets the angular coordinates
The ‘theta’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
theta0¶ Alternate to
theta. Builds a linear space of theta coordinates. Use withdthetawheretheta0is the starting coordinate anddthetathe step.The ‘theta0’ property accepts values of any type
- Returns
- Return type
Any
-
property
thetasrc¶ Sets the source reference on Chart Studio Cloud for
theta.The ‘thetasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
thetaunit¶ Sets the unit of input “theta” values. Has an effect only when on “linear” angular axes.
- The ‘thetaunit’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘radians’, ‘degrees’, ‘gradians’]
- Returns
- Return type
Any
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
unselected¶ The ‘unselected’ property is an instance of Unselected that may be specified as:
An instance of
plotly.graph_objects.barpolar.UnselectedA dict of string/value properties that will be passed to the Unselected constructor
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
width¶ Sets the bar angular width (in “thetaunit” units).
- The ‘width’ property is a number and may be specified as:
An int or float in the interval [0, inf]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
-
class
plotly.graph_objects.layout.template.data.Box(arg=None, alignmentgroup=None, boxmean=None, boxpoints=None, customdata=None, customdatasrc=None, dx=None, dy=None, fillcolor=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hoveron=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, jitter=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, lowerfence=None, lowerfencesrc=None, marker=None, mean=None, meansrc=None, median=None, mediansrc=None, meta=None, metasrc=None, name=None, notched=None, notchspan=None, notchspansrc=None, notchwidth=None, offsetgroup=None, opacity=None, orientation=None, pointpos=None, q1=None, q1src=None, q3=None, q3src=None, quartilemethod=None, sd=None, sdmultiple=None, sdsrc=None, selected=None, selectedpoints=None, showlegend=None, showwhiskers=None, sizemode=None, stream=None, text=None, textsrc=None, uid=None, uirevision=None, unselected=None, upperfence=None, upperfencesrc=None, visible=None, whiskerwidth=None, width=None, x=None, x0=None, xaxis=None, xcalendar=None, xhoverformat=None, xperiod=None, xperiod0=None, xperiodalignment=None, xsrc=None, y=None, y0=None, yaxis=None, ycalendar=None, yhoverformat=None, yperiod=None, yperiod0=None, yperiodalignment=None, ysrc=None, zorder=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
alignmentgroup¶ Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently.
- The ‘alignmentgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
boxmean¶ If True, the mean of the box(es)’ underlying distribution is drawn as a dashed line inside the box(es). If “sd” the standard deviation is also drawn. Defaults to True when
meanis set. Defaults to “sd” whensdis set Otherwise defaults to False.- The ‘boxmean’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, ‘sd’, False]
- Returns
- Return type
Any
-
property
boxpoints¶ If “outliers”, only the sample points lying outside the whiskers are shown If “suspectedoutliers”, the outlier points are shown and points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1 are highlighted (see
outliercolor) If “all”, all sample points are shown If False, only the box(es) are shown with no sample points Defaults to “suspectedoutliers” whenmarker.outliercolorormarker.line.outliercoloris set. Defaults to “all” under the q1/median/q3 signature. Otherwise defaults to “outliers”.- The ‘boxpoints’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘all’, ‘outliers’, ‘suspectedoutliers’, False]
- Returns
- Return type
Any
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
dx¶ Sets the x coordinate step for multi-box traces set using q1/median/q3.
- The ‘dx’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
dy¶ Sets the y coordinate step for multi-box traces set using q1/median/q3.
- The ‘dy’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
fillcolor¶ Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.
- The ‘fillcolor’ property is a color and may be specified as:
A hex string (e.g. ‘#ff0000’)
An rgb/rgba string (e.g. ‘rgb(255,0,0)’)
An hsl/hsla string (e.g. ‘hsl(0,100%,50%)’)
An hsv/hsva string (e.g. ‘hsv(0,100%,100%)’)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.box.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hoveron¶ Do the hover effects highlight individual boxes or sample points or both?
The ‘hoveron’ property is a flaglist and may be specified as a string containing:
Any combination of [‘boxes’, ‘points’] joined with ‘+’ characters (e.g. ‘boxes+points’)
- Returns
- Return type
Any
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
jitter¶ Sets the amount of jitter in the sample points drawn. If 0, the sample points align along the distribution axis. If 1, the sample points are drawn in a random jitter of width equal to the width of the box(es).
- The ‘jitter’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.box.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
line¶ The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.box.LineA dict of string/value properties that will be passed to the Line constructor
- Returns
- Return type
-
property
lowerfence¶ Sets the lower fence values. There should be as many items as the number of boxes desired. This attribute has effect only under the q1/median/q3 signature. If
lowerfenceis not provided but a sample (inyorx) is set, we compute the lower as the last sample point below 1.5 times the IQR.The ‘lowerfence’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
lowerfencesrc¶ Sets the source reference on Chart Studio Cloud for
lowerfence.The ‘lowerfencesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.box.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
mean¶ Sets the mean values. There should be as many items as the number of boxes desired. This attribute has effect only under the q1/median/q3 signature. If
meanis not provided but a sample (inyorx) is set, we compute the mean for each box using the sample values.The ‘mean’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
meansrc¶ Sets the source reference on Chart Studio Cloud for
mean.The ‘meansrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
median¶ Sets the median values. There should be as many items as the number of boxes desired.
The ‘median’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
mediansrc¶ Sets the source reference on Chart Studio Cloud for
median.The ‘mediansrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover. For box traces, the name will also be used for the position coordinate, if
xandx0(yandy0if horizontal) are missing and the position axis is categorical- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
notched¶ Determines whether or not notches are drawn. Notches displays a confidence interval around the median. We compute the confidence interval as median +/- 1.57 * IQR / sqrt(N), where IQR is the interquartile range and N is the sample size. If two boxes’ notches do not overlap there is 95% confidence their medians differ. See https://sites.google.com/site/davidsstatistics/home/notched- box-plots for more info. Defaults to False unless
notchwidthornotchspanis set.- The ‘notched’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
notchspan¶ Sets the notch span from the boxes’
medianvalues. There should be as many items as the number of boxes desired. This attribute has effect only under the q1/median/q3 signature. Ifnotchspanis not provided but a sample (inyorx) is set, we compute it as 1.57 * IQR / sqrt(N), where N is the sample size.The ‘notchspan’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
notchspansrc¶ Sets the source reference on Chart Studio Cloud for
notchspan.The ‘notchspansrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
notchwidth¶ Sets the width of the notches relative to the box width. For example, with 0, the notches are as wide as the box(es).
- The ‘notchwidth’ property is a number and may be specified as:
An int or float in the interval [0, 0.5]
- Returns
- Return type
int|float
-
property
offsetgroup¶ Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up.
- The ‘offsetgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
orientation¶ Sets the orientation of the box(es). If “v” (“h”), the distribution is visualized along the vertical (horizontal).
- The ‘orientation’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘v’, ‘h’]
- Returns
- Return type
Any
-
property
pointpos¶ Sets the position of the sample points in relation to the box(es). If 0, the sample points are places over the center of the box(es). Positive (negative) values correspond to positions to the right (left) for vertical boxes and above (below) for horizontal boxes
- The ‘pointpos’ property is a number and may be specified as:
An int or float in the interval [-2, 2]
- Returns
- Return type
int|float
-
property
q1¶ Sets the Quartile 1 values. There should be as many items as the number of boxes desired.
The ‘q1’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
q1src¶ Sets the source reference on Chart Studio Cloud for
q1.The ‘q1src’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
q3¶ Sets the Quartile 3 values. There should be as many items as the number of boxes desired.
The ‘q3’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
q3src¶ Sets the source reference on Chart Studio Cloud for
q3.The ‘q3src’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
quartilemethod¶ Sets the method used to compute the sample’s Q1 and Q3 quartiles. The “linear” method uses the 25th percentile for Q1 and 75th percentile for Q3 as computed using method #10 (listed on http://jse.amstat.org/v14n3/langford.html). The “exclusive” method uses the median to divide the ordered dataset into two halves if the sample is odd, it does not include the median in either half - Q1 is then the median of the lower half and Q3 the median of the upper half. The “inclusive” method also uses the median to divide the ordered dataset into two halves but if the sample is odd, it includes the median in both halves - Q1 is then the median of the lower half and Q3 the median of the upper half.
- The ‘quartilemethod’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘linear’, ‘exclusive’, ‘inclusive’]
- Returns
- Return type
Any
-
property
sd¶ Sets the standard deviation values. There should be as many items as the number of boxes desired. This attribute has effect only under the q1/median/q3 signature. If
sdis not provided but a sample (inyorx) is set, we compute the standard deviation for each box using the sample values.The ‘sd’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
sdmultiple¶ Scales the box size when sizemode=sd Allowing boxes to be drawn across any stddev range For example 1-stddev, 3-stddev, 5-stddev
- The ‘sdmultiple’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
sdsrc¶ Sets the source reference on Chart Studio Cloud for
sd.The ‘sdsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
selected¶ The ‘selected’ property is an instance of Selected that may be specified as:
An instance of
plotly.graph_objects.box.SelectedA dict of string/value properties that will be passed to the Selected constructor
- Returns
- Return type
-
property
selectedpoints¶ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselectedare turned on for all points, whereas, any other non-array values means no selection all where theselectedandunselectedstyles have no effect.The ‘selectedpoints’ property accepts values of any type
- Returns
- Return type
Any
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showwhiskers¶ Determines whether or not whiskers are visible. Defaults to true for
sizemode“quartiles”, false for “sd”.- The ‘showwhiskers’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
sizemode¶ Sets the upper and lower bound for the boxes quartiles means box is drawn between Q1 and Q3 SD means the box is drawn between Mean +- Standard Deviation Argument sdmultiple (default 1) to scale the box size So it could be drawn 1-stddev, 3-stddev etc
- The ‘sizemode’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘quartiles’, ‘sd’]
- Returns
- Return type
Any
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.box.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace’s (x,y) coordinates. To be seen, trace
hoverinfomust contain a “text” flag.- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
unselected¶ The ‘unselected’ property is an instance of Unselected that may be specified as:
An instance of
plotly.graph_objects.box.UnselectedA dict of string/value properties that will be passed to the Unselected constructor
- Returns
- Return type
-
property
upperfence¶ Sets the upper fence values. There should be as many items as the number of boxes desired. This attribute has effect only under the q1/median/q3 signature. If
upperfenceis not provided but a sample (inyorx) is set, we compute the upper as the last sample point above 1.5 times the IQR.The ‘upperfence’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
upperfencesrc¶ Sets the source reference on Chart Studio Cloud for
upperfence.The ‘upperfencesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
whiskerwidth¶ Sets the width of the whiskers relative to the box width. For example, with 1, the whiskers are as wide as the box(es).
- The ‘whiskerwidth’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
width¶ Sets the width of the box in data coordinate If 0 (default value) the width is automatically selected based on the positions of other box traces in the same subplot.
- The ‘width’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
x¶ Sets the x sample data or coordinates. See overview for more info.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
x0¶ Sets the x coordinate for single-box traces or the starting coordinate for multi-box traces set using q1/median/q3. See overview for more info.
The ‘x0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xcalendar¶ Sets the calendar system to use with
xdate data.- The ‘xcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the x axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘xperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the x0 axis. Whenx0periodis round number of weeks, thex0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘xperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the x axis.- The ‘xperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
y¶ Sets the y sample data or coordinates. See overview for more info.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
y0¶ Sets the y coordinate for single-box traces or the starting coordinate for multi-box traces set using q1/median/q3. See overview for more info.
The ‘y0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
ycalendar¶ Sets the calendar system to use with
ydate data.- The ‘ycalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
yperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the y axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘yperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
yperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the y0 axis. Wheny0periodis round number of weeks, they0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘yperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the y axis.- The ‘yperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Candlestick(arg=None, close=None, closesrc=None, customdata=None, customdatasrc=None, decreasing=None, high=None, highsrc=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, increasing=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, low=None, lowsrc=None, meta=None, metasrc=None, name=None, opacity=None, open=None, opensrc=None, selectedpoints=None, showlegend=None, stream=None, text=None, textsrc=None, uid=None, uirevision=None, visible=None, whiskerwidth=None, x=None, xaxis=None, xcalendar=None, xhoverformat=None, xperiod=None, xperiod0=None, xperiodalignment=None, xsrc=None, yaxis=None, yhoverformat=None, zorder=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
close¶ Sets the close values.
The ‘close’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
closesrc¶ Sets the source reference on Chart Studio Cloud for
close.The ‘closesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
decreasing¶ The ‘decreasing’ property is an instance of Decreasing that may be specified as:
An instance of
plotly.graph_objects.candlestick.DecreasingA dict of string/value properties that will be passed to the Decreasing constructor
- Returns
- Return type
-
property
high¶ Sets the high values.
The ‘high’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
highsrc¶ Sets the source reference on Chart Studio Cloud for
high.The ‘highsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.candlestick.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablesopen,high,lowandclose. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
increasing¶ The ‘increasing’ property is an instance of Increasing that may be specified as:
An instance of
plotly.graph_objects.candlestick.IncreasingA dict of string/value properties that will be passed to the Increasing constructor
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.candlestick.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
line¶ The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.candlestick.LineA dict of string/value properties that will be passed to the Line constructor
- Returns
- Return type
-
property
low¶ Sets the low values.
The ‘low’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
lowsrc¶ Sets the source reference on Chart Studio Cloud for
low.The ‘lowsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
open¶ Sets the open values.
The ‘open’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
opensrc¶ Sets the source reference on Chart Studio Cloud for
open.The ‘opensrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
selectedpoints¶ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselectedare turned on for all points, whereas, any other non-array values means no selection all where theselectedandunselectedstyles have no effect.The ‘selectedpoints’ property accepts values of any type
- Returns
- Return type
Any
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.candlestick.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace’s sample points.
- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
whiskerwidth¶ Sets the width of the whiskers relative to the box width. For example, with 1, the whiskers are as wide as the box(es).
- The ‘whiskerwidth’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
x¶ Sets the x coordinates. If absent, linear coordinate will be generated.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xcalendar¶ Sets the calendar system to use with
xdate data.- The ‘xcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the x axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘xperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the x0 axis. Whenx0periodis round number of weeks, thex0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘xperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the x axis.- The ‘xperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Carpet(arg=None, a=None, a0=None, aaxis=None, asrc=None, b=None, b0=None, baxis=None, bsrc=None, carpet=None, cheaterslope=None, color=None, customdata=None, customdatasrc=None, da=None, db=None, font=None, ids=None, idssrc=None, legend=None, legendgrouptitle=None, legendrank=None, legendwidth=None, meta=None, metasrc=None, name=None, opacity=None, stream=None, uid=None, uirevision=None, visible=None, x=None, xaxis=None, xsrc=None, y=None, yaxis=None, ysrc=None, zorder=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
a¶ An array containing values of the first parameter value
The ‘a’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
a0¶ Alternate to
a. Builds a linear space of a coordinates. Use withdawherea0is the starting coordinate anddathe step.- The ‘a0’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
aaxis¶ The ‘aaxis’ property is an instance of Aaxis that may be specified as:
An instance of
plotly.graph_objects.carpet.AaxisA dict of string/value properties that will be passed to the Aaxis constructor
- Returns
- Return type
-
property
asrc¶ Sets the source reference on Chart Studio Cloud for
a.The ‘asrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
b¶ A two dimensional array of y coordinates at each carpet point.
The ‘b’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
b0¶ Alternate to
b. Builds a linear space of a coordinates. Use withdbwhereb0is the starting coordinate anddbthe step.- The ‘b0’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
baxis¶ The ‘baxis’ property is an instance of Baxis that may be specified as:
An instance of
plotly.graph_objects.carpet.BaxisA dict of string/value properties that will be passed to the Baxis constructor
- Returns
- Return type
-
property
bsrc¶ Sets the source reference on Chart Studio Cloud for
b.The ‘bsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
carpet¶ An identifier for this carpet, so that
scattercarpetandcontourcarpettraces can specify a carpet plot on which they lie- The ‘carpet’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
cheaterslope¶ The shift applied to each successive row of data in creating a cheater plot. Only used if
xis been omitted.- The ‘cheaterslope’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
color¶ Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this.
- The ‘color’ property is a color and may be specified as:
A hex string (e.g. ‘#ff0000’)
An rgb/rgba string (e.g. ‘rgb(255,0,0)’)
An hsl/hsla string (e.g. ‘hsl(0,100%,50%)’)
An hsv/hsva string (e.g. ‘hsv(0,100%,100%)’)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
da¶ Sets the a coordinate step. See
a0for more info.- The ‘da’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
db¶ Sets the b coordinate step. See
b0for more info.- The ‘db’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
font¶ The default font used for axis & tick labels on this carpet
The ‘font’ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.carpet.FontA dict of string/value properties that will be passed to the Font constructor
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.carpet.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.carpet.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
x¶ A two dimensional array of x coordinates at each carpet point. If omitted, the plot is a cheater plot and the xaxis is hidden by default.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
y¶ A two dimensional array of y coordinates at each carpet point.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Choropleth(arg=None, autocolorscale=None, coloraxis=None, colorbar=None, colorscale=None, customdata=None, customdatasrc=None, featureidkey=None, geo=None, geojson=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, locationmode=None, locations=None, locationssrc=None, marker=None, meta=None, metasrc=None, name=None, reversescale=None, selected=None, selectedpoints=None, showlegend=None, showscale=None, stream=None, text=None, textsrc=None, uid=None, uirevision=None, unselected=None, visible=None, z=None, zauto=None, zmax=None, zmid=None, zmin=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.choropleth.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usezminandzmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
featureidkey¶ Sets the key in GeoJSON features which is used as id to match the items included in the
locationsarray. Only has an effect whengeojsonis set. Support nested property, for example “properties.name”.- The ‘featureidkey’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
geo¶ Sets a reference between this trace’s geospatial coordinates and a geographic map. If “geo” (the default value), the geospatial coordinates refer to
layout.geo. If “geo2”, the geospatial coordinates refer tolayout.geo2, and so on.The ‘geo’ property is an identifier of a particular subplot, of type ‘geo’, that may be specified as:
the string ‘geo’ optionally followed by an integer >= 1 (e.g. ‘geo’, ‘geo1’, ‘geo2’, ‘geo3’, etc.)
- Returns
- Return type
-
property
geojson¶ Sets optional GeoJSON data associated with this trace. If not given, the features on the base map are used. It can be set as a valid GeoJSON object or as a URL string. Note that we only accept GeoJSONs of type “FeatureCollection” or “Feature” with geometries of type “Polygon” or “MultiPolygon”.
The ‘geojson’ property accepts values of any type
- Returns
- Return type
Any
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘location’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘location+z’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.choropleth.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.choropleth.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
locationmode¶ The library used by the country names
locationmodeoption is changing in an upcoming version. Country names in existing plots may not work in the new version. Determines the set of locations used to match entries inlocationsto regions on the map. Values “ISO-3”, “USA-states”, country names correspond to features on the base map and value “geojson-id” corresponds to features from a custom GeoJSON linked to thegeojsonattribute. “USA-states” accepts both two-letter abbreviations (e.g. “CA”) and full state names (e.g. “California”).- The ‘locationmode’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘ISO-3’, ‘USA-states’, ‘country names’, ‘geojson-id’]
- Returns
- Return type
Any
-
property
locations¶ Sets the coordinates via location IDs or names. See
locationmodefor more info.The ‘locations’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
locationssrc¶ Sets the source reference on Chart Studio Cloud for
locations.The ‘locationssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.choropleth.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
reversescale¶ Reverses the color mapping if true. If true,
zminwill correspond to the last color in the array andzmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
selected¶ The ‘selected’ property is an instance of Selected that may be specified as:
An instance of
plotly.graph_objects.choropleth.SelectedA dict of string/value properties that will be passed to the Selected constructor
- Returns
- Return type
-
property
selectedpoints¶ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselectedare turned on for all points, whereas, any other non-array values means no selection all where theselectedandunselectedstyles have no effect.The ‘selectedpoints’ property accepts values of any type
- Returns
- Return type
Any
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.choropleth.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets the text elements associated with each location.
- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
unselected¶ The ‘unselected’ property is an instance of Unselected that may be specified as:
An instance of
plotly.graph_objects.choropleth.UnselectedA dict of string/value properties that will be passed to the Unselected constructor
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
z¶ Sets the color values.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
z) or the bounds set inzminandzmaxDefaults tofalsewhenzminandzmaxare set by the user.- The ‘zauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
zmax¶ Sets the upper bound of the color domain. Value should have the same units as in
zand if set,zminmust be set as well.- The ‘zmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmid¶ Sets the mid-point of the color domain by scaling
zminand/orzmaxto be equidistant to this point. Value should have the same units as inz. Has no effect whenzautoisfalse.- The ‘zmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmin¶ Sets the lower bound of the color domain. Value should have the same units as in
zand if set,zmaxmust be set as well.- The ‘zmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.template.data.Choroplethmap(arg=None, autocolorscale=None, below=None, coloraxis=None, colorbar=None, colorscale=None, customdata=None, customdatasrc=None, featureidkey=None, geojson=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, locations=None, locationssrc=None, marker=None, meta=None, metasrc=None, name=None, reversescale=None, selected=None, selectedpoints=None, showlegend=None, showscale=None, stream=None, subplot=None, text=None, textsrc=None, uid=None, uirevision=None, unselected=None, visible=None, z=None, zauto=None, zmax=None, zmid=None, zmin=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
below¶ Determines if the choropleth polygons will be inserted before the layer with the specified ID. By default, choroplethmap traces are placed above the water layers. If set to ‘’, the layer will be inserted above every existing layer.
- The ‘below’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.choroplethmap.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usezminandzmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
featureidkey¶ Sets the key in GeoJSON features which is used as id to match the items included in the
locationsarray. Support nested property, for example “properties.name”.- The ‘featureidkey’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
geojson¶ Sets the GeoJSON data associated with this trace. It can be set as a valid GeoJSON object or as a URL string. Note that we only accept GeoJSONs of type “FeatureCollection” or “Feature” with geometries of type “Polygon” or “MultiPolygon”.
The ‘geojson’ property accepts values of any type
- Returns
- Return type
Any
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘location’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘location+z’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.choroplethmap.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablepropertiesAnything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.choroplethmap.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
locations¶ Sets which features found in “geojson” to plot using their feature
idfield.The ‘locations’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
locationssrc¶ Sets the source reference on Chart Studio Cloud for
locations.The ‘locationssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.choroplethmap.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
reversescale¶ Reverses the color mapping if true. If true,
zminwill correspond to the last color in the array andzmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
selected¶ The ‘selected’ property is an instance of Selected that may be specified as:
An instance of
plotly.graph_objects.choroplethmap.SelectedA dict of string/value properties that will be passed to the Selected constructor
- Returns
- Return type
-
property
selectedpoints¶ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselectedare turned on for all points, whereas, any other non-array values means no selection all where theselectedandunselectedstyles have no effect.The ‘selectedpoints’ property accepts values of any type
- Returns
- Return type
Any
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.choroplethmap.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
subplot¶ Sets a reference between this trace’s data coordinates and a map subplot. If “map” (the default value), the data refer to
layout.map. If “map2”, the data refer tolayout.map2, and so on.The ‘subplot’ property is an identifier of a particular subplot, of type ‘map’, that may be specified as:
the string ‘map’ optionally followed by an integer >= 1 (e.g. ‘map’, ‘map1’, ‘map2’, ‘map3’, etc.)
- Returns
- Return type
-
property
text¶ Sets the text elements associated with each location.
- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
unselected¶ The ‘unselected’ property is an instance of Unselected that may be specified as:
An instance of
plotly.graph_objects.choroplethmap.UnselectedA dict of string/value properties that will be passed to the Unselected constructor
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
z¶ Sets the color values.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
z) or the bounds set inzminandzmaxDefaults tofalsewhenzminandzmaxare set by the user.- The ‘zauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
zmax¶ Sets the upper bound of the color domain. Value should have the same units as in
zand if set,zminmust be set as well.- The ‘zmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmid¶ Sets the mid-point of the color domain by scaling
zminand/orzmaxto be equidistant to this point. Value should have the same units as inz. Has no effect whenzautoisfalse.- The ‘zmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmin¶ Sets the lower bound of the color domain. Value should have the same units as in
zand if set,zmaxmust be set as well.- The ‘zmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.template.data.Choroplethmapbox(arg=None, autocolorscale=None, below=None, coloraxis=None, colorbar=None, colorscale=None, customdata=None, customdatasrc=None, featureidkey=None, geojson=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, locations=None, locationssrc=None, marker=None, meta=None, metasrc=None, name=None, reversescale=None, selected=None, selectedpoints=None, showlegend=None, showscale=None, stream=None, subplot=None, text=None, textsrc=None, uid=None, uirevision=None, unselected=None, visible=None, z=None, zauto=None, zmax=None, zmid=None, zmin=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
below¶ Determines if the choropleth polygons will be inserted before the layer with the specified ID. By default, choroplethmapbox traces are placed above the water layers. If set to ‘’, the layer will be inserted above every existing layer.
- The ‘below’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.choroplethmapbox.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usezminandzmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
featureidkey¶ Sets the key in GeoJSON features which is used as id to match the items included in the
locationsarray. Support nested property, for example “properties.name”.- The ‘featureidkey’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
geojson¶ Sets the GeoJSON data associated with this trace. It can be set as a valid GeoJSON object or as a URL string. Note that we only accept GeoJSONs of type “FeatureCollection” or “Feature” with geometries of type “Polygon” or “MultiPolygon”.
The ‘geojson’ property accepts values of any type
- Returns
- Return type
Any
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘location’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘location+z’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.choroplethmapbox.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablepropertiesAnything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.choroplethmapbox.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
locations¶ Sets which features found in “geojson” to plot using their feature
idfield.The ‘locations’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
locationssrc¶ Sets the source reference on Chart Studio Cloud for
locations.The ‘locationssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.choroplethmapbox.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
reversescale¶ Reverses the color mapping if true. If true,
zminwill correspond to the last color in the array andzmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
selected¶ The ‘selected’ property is an instance of Selected that may be specified as:
An instance of
plotly.graph_objects.choroplethmapbox.SelectedA dict of string/value properties that will be passed to the Selected constructor
- Returns
- Return type
-
property
selectedpoints¶ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselectedare turned on for all points, whereas, any other non-array values means no selection all where theselectedandunselectedstyles have no effect.The ‘selectedpoints’ property accepts values of any type
- Returns
- Return type
Any
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.choroplethmapbox.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
subplot¶ mapbox subplots and traces are deprecated! Please consider switching to
mapsubplots and traces. Learn more at: https://plotly.com/python/maplibre-migration/ as well as https://plotly.com/javascript/maplibre-migration/ Sets a reference between this trace’s data coordinates and a mapbox subplot. If “mapbox” (the default value), the data refer tolayout.mapbox. If “mapbox2”, the data refer tolayout.mapbox2, and so on.The ‘subplot’ property is an identifier of a particular subplot, of type ‘mapbox’, that may be specified as:
the string ‘mapbox’ optionally followed by an integer >= 1 (e.g. ‘mapbox’, ‘mapbox1’, ‘mapbox2’, ‘mapbox3’, etc.)
- Returns
- Return type
-
property
text¶ Sets the text elements associated with each location.
- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
unselected¶ The ‘unselected’ property is an instance of Unselected that may be specified as:
An instance of
plotly.graph_objects.choroplethmapbox.UnselectedA dict of string/value properties that will be passed to the Unselected constructor
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
z¶ Sets the color values.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
z) or the bounds set inzminandzmaxDefaults tofalsewhenzminandzmaxare set by the user.- The ‘zauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
zmax¶ Sets the upper bound of the color domain. Value should have the same units as in
zand if set,zminmust be set as well.- The ‘zmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmid¶ Sets the mid-point of the color domain by scaling
zminand/orzmaxto be equidistant to this point. Value should have the same units as inz. Has no effect whenzautoisfalse.- The ‘zmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmin¶ Sets the lower bound of the color domain. Value should have the same units as in
zand if set,zmaxmust be set as well.- The ‘zmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.template.data.Cone(arg=None, anchor=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, coloraxis=None, colorbar=None, colorscale=None, customdata=None, customdatasrc=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, lighting=None, lightposition=None, meta=None, metasrc=None, name=None, opacity=None, reversescale=None, scene=None, showlegend=None, showscale=None, sizemode=None, sizeref=None, stream=None, text=None, textsrc=None, u=None, uhoverformat=None, uid=None, uirevision=None, usrc=None, v=None, vhoverformat=None, visible=None, vsrc=None, w=None, whoverformat=None, wsrc=None, x=None, xhoverformat=None, xsrc=None, y=None, yhoverformat=None, ysrc=None, z=None, zhoverformat=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
anchor¶ Sets the cones’ anchor with respect to their x/y/z positions. Note that “cm” denote the cone’s center of mass which corresponds to 1/4 from the tail to tip.
- The ‘anchor’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘tip’, ‘tail’, ‘cm’, ‘center’]
- Returns
- Return type
Any
-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
cauto¶ Determines whether or not the color domain is computed with respect to the input data (here u/v/w norm) or the bounds set in
cminandcmaxDefaults tofalsewhencminandcmaxare set by the user.- The ‘cauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
cmax¶ Sets the upper bound of the color domain. Value should have the same units as u/v/w norm and if set,
cminmust be set as well.- The ‘cmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
cmid¶ Sets the mid-point of the color domain by scaling
cminand/orcmaxto be equidistant to this point. Value should have the same units as u/v/w norm. Has no effect whencautoisfalse.- The ‘cmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
cmin¶ Sets the lower bound of the color domain. Value should have the same units as u/v/w norm and if set,
cmaxmust be set as well.- The ‘cmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.cone.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usecminandcmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘u’, ‘v’, ‘w’, ‘norm’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.cone.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablenormAnything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.cone.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
lighting¶ The ‘lighting’ property is an instance of Lighting that may be specified as:
An instance of
plotly.graph_objects.cone.LightingA dict of string/value properties that will be passed to the Lighting constructor
- Returns
- Return type
-
property
lightposition¶ The ‘lightposition’ property is an instance of Lightposition that may be specified as:
An instance of
plotly.graph_objects.cone.LightpositionA dict of string/value properties that will be passed to the Lightposition constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the surface. Please note that in the case of using high
opacityvalues for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not perfectly be sorted in depth by the webgl API. This behavior may be improved in the near future and is subject to change.- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
reversescale¶ Reverses the color mapping if true. If true,
cminwill correspond to the last color in the array andcmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
scene¶ Sets a reference between this trace’s 3D coordinate system and a 3D scene. If “scene” (the default value), the (x,y,z) coordinates refer to
layout.scene. If “scene2”, the (x,y,z) coordinates refer tolayout.scene2, and so on.The ‘scene’ property is an identifier of a particular subplot, of type ‘scene’, that may be specified as:
the string ‘scene’ optionally followed by an integer >= 1 (e.g. ‘scene’, ‘scene1’, ‘scene2’, ‘scene3’, etc.)
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
sizemode¶ Determines whether
sizerefis set as a “scaled” (i.e unitless) scalar (normalized by the max u/v/w norm in the vector field) or as “absolute” value (in the same units as the vector field). To display sizes in actual vector length use “raw”.- The ‘sizemode’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘scaled’, ‘absolute’, ‘raw’]
- Returns
- Return type
Any
-
property
sizeref¶ Adjusts the cone size scaling. The size of the cones is determined by their u/v/w norm multiplied a factor and
sizeref. This factor (computed internally) corresponds to the minimum “time” to travel across two successive x/y/z positions at the average velocity of those two successive positions. All cones in a given trace use the same factor. Withsizemodeset to “raw”, its default value is 1. Withsizemodeset to “scaled”,sizerefis unitless, its default value is 0.5. Withsizemodeset to “absolute”,sizerefhas the same units as the u/v/w vector field, its the default value is half the sample’s maximum vector norm.- The ‘sizeref’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.cone.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets the text elements associated with the cones. If trace
hoverinfocontains a “text” flag and “hovertext” is not set, these elements will be seen in the hover labels.- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
u¶ Sets the x components of the vector field.
The ‘u’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
uhoverformat¶ Sets the hover text formatting rulefor
uusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format.- The ‘uhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
usrc¶ Sets the source reference on Chart Studio Cloud for
u.The ‘usrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
v¶ Sets the y components of the vector field.
The ‘v’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
vhoverformat¶ Sets the hover text formatting rulefor
vusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format.- The ‘vhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
vsrc¶ Sets the source reference on Chart Studio Cloud for
v.The ‘vsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
w¶ Sets the z components of the vector field.
The ‘w’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
whoverformat¶ Sets the hover text formatting rulefor
wusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format.- The ‘whoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
wsrc¶ Sets the source reference on Chart Studio Cloud for
w.The ‘wsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
x¶ Sets the x coordinates of the vector field and of the displayed cones.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
y¶ Sets the y coordinates of the vector field and of the displayed cones.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
z¶ Sets the z coordinates of the vector field and of the displayed cones.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zhoverformat¶ Sets the hover text formatting rulefor
zusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingzaxis.hoverformat.- The ‘zhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Contour(arg=None, autocolorscale=None, autocontour=None, coloraxis=None, colorbar=None, colorscale=None, connectgaps=None, contours=None, customdata=None, customdatasrc=None, dx=None, dy=None, fillcolor=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hoverongaps=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, meta=None, metasrc=None, name=None, ncontours=None, opacity=None, reversescale=None, showlegend=None, showscale=None, stream=None, text=None, textfont=None, textsrc=None, texttemplate=None, texttemplatefallback=None, transpose=None, uid=None, uirevision=None, visible=None, x=None, x0=None, xaxis=None, xcalendar=None, xhoverformat=None, xperiod=None, xperiod0=None, xperiodalignment=None, xsrc=None, xtype=None, y=None, y0=None, yaxis=None, ycalendar=None, yhoverformat=None, yperiod=None, yperiod0=None, yperiodalignment=None, ysrc=None, ytype=None, z=None, zauto=None, zhoverformat=None, zmax=None, zmid=None, zmin=None, zorder=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
autocontour¶ Determines whether or not the contour level attributes are picked by an algorithm. If True, the number of contour levels can be set in
ncontours. If False, set the contour level attributes incontours.- The ‘autocontour’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.contour.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usezminandzmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
connectgaps¶ Determines whether or not gaps (i.e. {nan} or missing values) in the
zdata are filled in. It is defaulted to true ifzis a one dimensional array otherwise it is defaulted to false.- The ‘connectgaps’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
contours¶ The ‘contours’ property is an instance of Contours that may be specified as:
An instance of
plotly.graph_objects.contour.ContoursA dict of string/value properties that will be passed to the Contours constructor
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
dx¶ Sets the x coordinate step. See
x0for more info.- The ‘dx’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
dy¶ Sets the y coordinate step. See
y0for more info.- The ‘dy’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
fillcolor¶ Sets the fill color if
contours.typeis “constraint”. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.- The ‘fillcolor’ property is a color and may be specified as:
A hex string (e.g. ‘#ff0000’)
An rgb/rgba string (e.g. ‘rgb(255,0,0)’)
An hsl/hsla string (e.g. ‘hsl(0,100%,50%)’)
An hsv/hsva string (e.g. ‘hsv(0,100%,100%)’)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
A number that will be interpreted as a color according to contour.colorscale
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.contour.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hoverongaps¶ Determines whether or not gaps (i.e. {nan} or missing values) in the
zdata have hover labels associated with them.- The ‘hoverongaps’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.The ‘hovertext’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.contour.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
line¶ The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.contour.LineA dict of string/value properties that will be passed to the Line constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ncontours¶ Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of
ncontours. Has an effect only ifautocontouris True or ifcontours.sizeis missing.- The ‘ncontours’ property is an integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 9223372036854775807]
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
reversescale¶ Reverses the color mapping if true. If true,
zminwill correspond to the last color in the array andzmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.contour.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets the text elements associated with each z value.
The ‘text’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
textfont¶ For this trace it only has an effect if
coloringis set to “heatmap”. Sets the text font.The ‘textfont’ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.contour.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
texttemplate¶ For this trace it only has an effect if
coloringis set to “heatmap”. Template string used for rendering the information text that appears on points. Note that this will overridetextinfo. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablesx,y,zandtext.- The ‘texttemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
texttemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘texttemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
transpose¶ Transposes the z data.
- The ‘transpose’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
x¶ Sets the x coordinates.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
x0¶ Alternate to
x. Builds a linear space of x coordinates. Use withdxwherex0is the starting coordinate anddxthe step.The ‘x0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xcalendar¶ Sets the calendar system to use with
xdate data.- The ‘xcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the x axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘xperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the x0 axis. Whenx0periodis round number of weeks, thex0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘xperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the x axis.- The ‘xperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
xtype¶ If “array”, the heatmap’s x coordinates are given by “x” (the default behavior when
xis provided). If “scaled”, the heatmap’s x coordinates are given by “x0” and “dx” (the default behavior whenxis not provided).- The ‘xtype’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘array’, ‘scaled’]
- Returns
- Return type
Any
-
property
y¶ Sets the y coordinates.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
y0¶ Alternate to
y. Builds a linear space of y coordinates. Use withdywherey0is the starting coordinate anddythe step.The ‘y0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
ycalendar¶ Sets the calendar system to use with
ydate data.- The ‘ycalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
yperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the y axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘yperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
yperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the y0 axis. Wheny0periodis round number of weeks, they0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘yperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the y axis.- The ‘yperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ytype¶ If “array”, the heatmap’s y coordinates are given by “y” (the default behavior when
yis provided) If “scaled”, the heatmap’s y coordinates are given by “y0” and “dy” (the default behavior whenyis not provided)- The ‘ytype’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘array’, ‘scaled’]
- Returns
- Return type
Any
-
property
z¶ Sets the z data.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
z) or the bounds set inzminandzmaxDefaults tofalsewhenzminandzmaxare set by the user.- The ‘zauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
zhoverformat¶ Sets the hover text formatting rulefor
zusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format.- The ‘zhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
zmax¶ Sets the upper bound of the color domain. Value should have the same units as in
zand if set,zminmust be set as well.- The ‘zmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmid¶ Sets the mid-point of the color domain by scaling
zminand/orzmaxto be equidistant to this point. Value should have the same units as inz. Has no effect whenzautoisfalse.- The ‘zmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmin¶ Sets the lower bound of the color domain. Value should have the same units as in
zand if set,zmaxmust be set as well.- The ‘zmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Contourcarpet(arg=None, a=None, a0=None, asrc=None, atype=None, autocolorscale=None, autocontour=None, b=None, b0=None, bsrc=None, btype=None, carpet=None, coloraxis=None, colorbar=None, colorscale=None, contours=None, customdata=None, customdatasrc=None, da=None, db=None, fillcolor=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, meta=None, metasrc=None, name=None, ncontours=None, opacity=None, reversescale=None, showlegend=None, showscale=None, stream=None, text=None, textsrc=None, transpose=None, uid=None, uirevision=None, visible=None, xaxis=None, yaxis=None, z=None, zauto=None, zmax=None, zmid=None, zmin=None, zorder=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
a¶ Sets the x coordinates.
The ‘a’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
a0¶ Alternate to
x. Builds a linear space of x coordinates. Use withdxwherex0is the starting coordinate anddxthe step.The ‘a0’ property accepts values of any type
- Returns
- Return type
Any
-
property
asrc¶ Sets the source reference on Chart Studio Cloud for
a.The ‘asrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
atype¶ If “array”, the heatmap’s x coordinates are given by “x” (the default behavior when
xis provided). If “scaled”, the heatmap’s x coordinates are given by “x0” and “dx” (the default behavior whenxis not provided).- The ‘atype’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘array’, ‘scaled’]
- Returns
- Return type
Any
-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
autocontour¶ Determines whether or not the contour level attributes are picked by an algorithm. If True, the number of contour levels can be set in
ncontours. If False, set the contour level attributes incontours.- The ‘autocontour’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
b¶ Sets the y coordinates.
The ‘b’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
b0¶ Alternate to
y. Builds a linear space of y coordinates. Use withdywherey0is the starting coordinate anddythe step.The ‘b0’ property accepts values of any type
- Returns
- Return type
Any
-
property
bsrc¶ Sets the source reference on Chart Studio Cloud for
b.The ‘bsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
btype¶ If “array”, the heatmap’s y coordinates are given by “y” (the default behavior when
yis provided) If “scaled”, the heatmap’s y coordinates are given by “y0” and “dy” (the default behavior whenyis not provided)- The ‘btype’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘array’, ‘scaled’]
- Returns
- Return type
Any
-
property
carpet¶ The
carpetof the carpet axes on which this contour trace lies- The ‘carpet’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.contourcarpet.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usezminandzmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
contours¶ The ‘contours’ property is an instance of Contours that may be specified as:
An instance of
plotly.graph_objects.contourcarpet.ContoursA dict of string/value properties that will be passed to the Contours constructor
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
da¶ Sets the x coordinate step. See
x0for more info.- The ‘da’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
db¶ Sets the y coordinate step. See
y0for more info.- The ‘db’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
fillcolor¶ Sets the fill color if
contours.typeis “constraint”. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.- The ‘fillcolor’ property is a color and may be specified as:
A hex string (e.g. ‘#ff0000’)
An rgb/rgba string (e.g. ‘rgb(255,0,0)’)
An hsl/hsla string (e.g. ‘hsl(0,100%,50%)’)
An hsv/hsva string (e.g. ‘hsv(0,100%,100%)’)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
A number that will be interpreted as a color according to contourcarpet.colorscale
- Returns
- Return type
-
property
hovertext¶ Same as
text.The ‘hovertext’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.contourcarpet.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
line¶ The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.contourcarpet.LineA dict of string/value properties that will be passed to the Line constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ncontours¶ Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of
ncontours. Has an effect only ifautocontouris True or ifcontours.sizeis missing.- The ‘ncontours’ property is an integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 9223372036854775807]
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
reversescale¶ Reverses the color mapping if true. If true,
zminwill correspond to the last color in the array andzmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.contourcarpet.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets the text elements associated with each z value.
The ‘text’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
transpose¶ Transposes the z data.
- The ‘transpose’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
z¶ Sets the z data.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
z) or the bounds set inzminandzmaxDefaults tofalsewhenzminandzmaxare set by the user.- The ‘zauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
zmax¶ Sets the upper bound of the color domain. Value should have the same units as in
zand if set,zminmust be set as well.- The ‘zmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmid¶ Sets the mid-point of the color domain by scaling
zminand/orzmaxto be equidistant to this point. Value should have the same units as inz. Has no effect whenzautoisfalse.- The ‘zmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmin¶ Sets the lower bound of the color domain. Value should have the same units as in
zand if set,zmaxmust be set as well.- The ‘zmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Densitymap(arg=None, autocolorscale=None, below=None, coloraxis=None, colorbar=None, colorscale=None, customdata=None, customdatasrc=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, lat=None, latsrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, lon=None, lonsrc=None, meta=None, metasrc=None, name=None, opacity=None, radius=None, radiussrc=None, reversescale=None, showlegend=None, showscale=None, stream=None, subplot=None, text=None, textsrc=None, uid=None, uirevision=None, visible=None, z=None, zauto=None, zmax=None, zmid=None, zmin=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
below¶ Determines if the densitymap trace will be inserted before the layer with the specified ID. By default, densitymap traces are placed below the first layer of type symbol If set to ‘’, the layer will be inserted above every existing layer.
- The ‘below’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.densitymap.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usezminandzmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘lon’, ‘lat’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘lon+lat’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.densitymap.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace’s (lon,lat) coordinates. To be seen, trace
hoverinfomust contain a “text” flag.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
lat¶ Sets the latitude coordinates (in degrees North).
The ‘lat’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
latsrc¶ Sets the source reference on Chart Studio Cloud for
lat.The ‘latsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.densitymap.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
lon¶ Sets the longitude coordinates (in degrees East).
The ‘lon’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
lonsrc¶ Sets the source reference on Chart Studio Cloud for
lon.The ‘lonsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
radius¶ Sets the radius of influence of one
lon/latpoint in pixels. Increasing the value makes the densitymap trace smoother, but less detailed.- The ‘radius’ property is a number and may be specified as:
An int or float in the interval [1, inf]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
radiussrc¶ Sets the source reference on Chart Studio Cloud for
radius.The ‘radiussrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
reversescale¶ Reverses the color mapping if true. If true,
zminwill correspond to the last color in the array andzmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.densitymap.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
subplot¶ Sets a reference between this trace’s data coordinates and a map subplot. If “map” (the default value), the data refer to
layout.map. If “map2”, the data refer tolayout.map2, and so on.The ‘subplot’ property is an identifier of a particular subplot, of type ‘map’, that may be specified as:
the string ‘map’ optionally followed by an integer >= 1 (e.g. ‘map’, ‘map1’, ‘map2’, ‘map3’, etc.)
- Returns
- Return type
-
property
text¶ Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace’s (lon,lat) coordinates. If trace
hoverinfocontains a “text” flag and “hovertext” is not set, these elements will be seen in the hover labels.- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
z¶ Sets the points’ weight. For example, a value of 10 would be equivalent to having 10 points of weight 1 in the same spot
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
z) or the bounds set inzminandzmaxDefaults tofalsewhenzminandzmaxare set by the user.- The ‘zauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
zmax¶ Sets the upper bound of the color domain. Value should have the same units as in
zand if set,zminmust be set as well.- The ‘zmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmid¶ Sets the mid-point of the color domain by scaling
zminand/orzmaxto be equidistant to this point. Value should have the same units as inz. Has no effect whenzautoisfalse.- The ‘zmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmin¶ Sets the lower bound of the color domain. Value should have the same units as in
zand if set,zmaxmust be set as well.- The ‘zmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.template.data.Densitymapbox(arg=None, autocolorscale=None, below=None, coloraxis=None, colorbar=None, colorscale=None, customdata=None, customdatasrc=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, lat=None, latsrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, lon=None, lonsrc=None, meta=None, metasrc=None, name=None, opacity=None, radius=None, radiussrc=None, reversescale=None, showlegend=None, showscale=None, stream=None, subplot=None, text=None, textsrc=None, uid=None, uirevision=None, visible=None, z=None, zauto=None, zmax=None, zmid=None, zmin=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
below¶ Determines if the densitymapbox trace will be inserted before the layer with the specified ID. By default, densitymapbox traces are placed below the first layer of type symbol If set to ‘’, the layer will be inserted above every existing layer.
- The ‘below’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.densitymapbox.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usezminandzmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘lon’, ‘lat’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘lon+lat’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.densitymapbox.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace’s (lon,lat) coordinates. To be seen, trace
hoverinfomust contain a “text” flag.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
lat¶ Sets the latitude coordinates (in degrees North).
The ‘lat’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
latsrc¶ Sets the source reference on Chart Studio Cloud for
lat.The ‘latsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.densitymapbox.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
lon¶ Sets the longitude coordinates (in degrees East).
The ‘lon’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
lonsrc¶ Sets the source reference on Chart Studio Cloud for
lon.The ‘lonsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
radius¶ Sets the radius of influence of one
lon/latpoint in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed.- The ‘radius’ property is a number and may be specified as:
An int or float in the interval [1, inf]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
radiussrc¶ Sets the source reference on Chart Studio Cloud for
radius.The ‘radiussrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
reversescale¶ Reverses the color mapping if true. If true,
zminwill correspond to the last color in the array andzmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.densitymapbox.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
subplot¶ mapbox subplots and traces are deprecated! Please consider switching to
mapsubplots and traces. Learn more at: https://plotly.com/python/maplibre-migration/ as well as https://plotly.com/javascript/maplibre-migration/ Sets a reference between this trace’s data coordinates and a mapbox subplot. If “mapbox” (the default value), the data refer tolayout.mapbox. If “mapbox2”, the data refer tolayout.mapbox2, and so on.The ‘subplot’ property is an identifier of a particular subplot, of type ‘mapbox’, that may be specified as:
the string ‘mapbox’ optionally followed by an integer >= 1 (e.g. ‘mapbox’, ‘mapbox1’, ‘mapbox2’, ‘mapbox3’, etc.)
- Returns
- Return type
-
property
text¶ Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace’s (lon,lat) coordinates. If trace
hoverinfocontains a “text” flag and “hovertext” is not set, these elements will be seen in the hover labels.- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
z¶ Sets the points’ weight. For example, a value of 10 would be equivalent to having 10 points of weight 1 in the same spot
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
z) or the bounds set inzminandzmaxDefaults tofalsewhenzminandzmaxare set by the user.- The ‘zauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
zmax¶ Sets the upper bound of the color domain. Value should have the same units as in
zand if set,zminmust be set as well.- The ‘zmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmid¶ Sets the mid-point of the color domain by scaling
zminand/orzmaxto be equidistant to this point. Value should have the same units as inz. Has no effect whenzautoisfalse.- The ‘zmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmin¶ Sets the lower bound of the color domain. Value should have the same units as in
zand if set,zmaxmust be set as well.- The ‘zmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.template.data.Funnel(arg=None, alignmentgroup=None, cliponaxis=None, connector=None, constraintext=None, customdata=None, customdatasrc=None, dx=None, dy=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, insidetextanchor=None, insidetextfont=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, marker=None, meta=None, metasrc=None, name=None, offset=None, offsetgroup=None, opacity=None, orientation=None, outsidetextfont=None, selectedpoints=None, showlegend=None, stream=None, text=None, textangle=None, textfont=None, textinfo=None, textposition=None, textpositionsrc=None, textsrc=None, texttemplate=None, texttemplatefallback=None, texttemplatesrc=None, uid=None, uirevision=None, visible=None, width=None, x=None, x0=None, xaxis=None, xhoverformat=None, xperiod=None, xperiod0=None, xperiodalignment=None, xsrc=None, y=None, y0=None, yaxis=None, yhoverformat=None, yperiod=None, yperiod0=None, yperiodalignment=None, ysrc=None, zorder=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
alignmentgroup¶ Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently.
- The ‘alignmentgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
cliponaxis¶ Determines whether the text nodes are clipped about the subplot axes. To show the text nodes above axis lines and tick labels, make sure to set
xaxis.layerandyaxis.layerto below traces.- The ‘cliponaxis’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
connector¶ The ‘connector’ property is an instance of Connector that may be specified as:
An instance of
plotly.graph_objects.funnel.ConnectorA dict of string/value properties that will be passed to the Connector constructor
- Returns
- Return type
-
property
constraintext¶ Constrain the size of text inside or outside a bar to be no larger than the bar itself.
- The ‘constraintext’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘inside’, ‘outside’, ‘both’, ‘none’]
- Returns
- Return type
Any
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
dx¶ Sets the x coordinate step. See
x0for more info.- The ‘dx’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
dy¶ Sets the y coordinate step. See
y0for more info.- The ‘dy’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘name’, ‘x’, ‘y’, ‘text’, ‘percent initial’, ‘percent previous’, ‘percent total’] joined with ‘+’ characters (e.g. ‘name+x’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.funnel.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablespercentInitial,percentPreviousandpercentTotal. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace’s (x,y) coordinates. To be seen, trace
hoverinfomust contain a “text” flag.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
insidetextanchor¶ Determines if texts are kept at center or start/end points in
textposition“inside” mode.- The ‘insidetextanchor’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘end’, ‘middle’, ‘start’]
- Returns
- Return type
Any
-
property
insidetextfont¶ Sets the font used for
textlying inside the bar.The ‘insidetextfont’ property is an instance of Insidetextfont that may be specified as:
An instance of
plotly.graph_objects.funnel.InsidetextfontA dict of string/value properties that will be passed to the Insidetextfont constructor
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.funnel.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.funnel.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
offset¶ Shifts the position where the bar is drawn (in position axis units). In “group” barmode, traces that set “offset” will be excluded and drawn in “overlay” mode instead.
- The ‘offset’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
offsetgroup¶ Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up.
- The ‘offsetgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
orientation¶ Sets the orientation of the funnels. With “v” (“h”), the value of the each bar spans along the vertical (horizontal). By default funnels are tend to be oriented horizontally; unless only “y” array is presented or orientation is set to “v”. Also regarding graphs including only ‘horizontal’ funnels, “autorange” on the “y-axis” are set to “reversed”.
- The ‘orientation’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘v’, ‘h’]
- Returns
- Return type
Any
-
property
outsidetextfont¶ Sets the font used for
textlying outside the bar.The ‘outsidetextfont’ property is an instance of Outsidetextfont that may be specified as:
An instance of
plotly.graph_objects.funnel.OutsidetextfontA dict of string/value properties that will be passed to the Outsidetextfont constructor
- Returns
- Return type
-
property
selectedpoints¶ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselectedare turned on for all points, whereas, any other non-array values means no selection all where theselectedandunselectedstyles have no effect.The ‘selectedpoints’ property accepts values of any type
- Returns
- Return type
Any
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.funnel.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace’s (x,y) coordinates. If trace
hoverinfocontains a “text” flag and “hovertext” is not set, these elements will be seen in the hover labels.- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textangle¶ Sets the angle of the tick labels with respect to the bar. For example, a
tickangleof -90 draws the tick labels vertically. With “auto” the texts may automatically be rotated to fit with the maximum size in bars.The ‘textangle’ property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this range are converted to the equivalent value (e.g. 270 is converted to -90).
- Returns
- Return type
int|float
-
property
textfont¶ Sets the font used for
text.The ‘textfont’ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.funnel.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
textinfo¶ Determines which trace information appear on the graph. In the case of having multiple funnels, percentages & totals are computed separately (per trace).
The ‘textinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘label’, ‘text’, ‘percent initial’, ‘percent previous’, ‘percent total’, ‘value’] joined with ‘+’ characters (e.g. ‘label+text’) OR exactly one of [‘none’] (e.g. ‘none’)
- Returns
- Return type
Any
-
property
textposition¶ Specifies the location of the
text. “inside” positionstextinside, next to the bar end (rotated and scaled if needed). “outside” positionstextoutside, 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 positiontextinside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If “none”, no text appears.- The ‘textposition’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘inside’, ‘outside’, ‘auto’, ‘none’]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
textpositionsrc¶ Sets the source reference on Chart Studio Cloud for
textposition.The ‘textpositionsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
texttemplate¶ Template string used for rendering the information text that appears on points. Note that this will override
textinfo. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablespercentInitial,percentPrevious,percentTotal,labelandvalue.- The ‘texttemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
texttemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘texttemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
texttemplatesrc¶ Sets the source reference on Chart Studio Cloud for
texttemplate.The ‘texttemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
width¶ Sets the bar width (in position axis units).
- The ‘width’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
x¶ Sets the x coordinates.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
x0¶ Alternate to
x. Builds a linear space of x coordinates. Use withdxwherex0is the starting coordinate anddxthe step.The ‘x0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the x axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘xperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the x0 axis. Whenx0periodis round number of weeks, thex0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘xperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the x axis.- The ‘xperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
y¶ Sets the y coordinates.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
y0¶ Alternate to
y. Builds a linear space of y coordinates. Use withdywherey0is the starting coordinate anddythe step.The ‘y0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
yperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the y axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘yperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
yperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the y0 axis. Wheny0periodis round number of weeks, they0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘yperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the y axis.- The ‘yperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Funnelarea(arg=None, aspectratio=None, baseratio=None, customdata=None, customdatasrc=None, dlabel=None, domain=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, insidetextfont=None, label0=None, labels=None, labelssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, marker=None, meta=None, metasrc=None, name=None, opacity=None, scalegroup=None, showlegend=None, stream=None, text=None, textfont=None, textinfo=None, textposition=None, textpositionsrc=None, textsrc=None, texttemplate=None, texttemplatefallback=None, texttemplatesrc=None, title=None, uid=None, uirevision=None, values=None, valuessrc=None, visible=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
aspectratio¶ Sets the ratio between height and width
- The ‘aspectratio’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
baseratio¶ Sets the ratio between bottom length and maximum top length.
- The ‘baseratio’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
dlabel¶ Sets the label step. See
label0for more info.- The ‘dlabel’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
domain¶ The ‘domain’ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.funnelarea.DomainA dict of string/value properties that will be passed to the Domain constructor
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘label’, ‘text’, ‘value’, ‘percent’, ‘name’] joined with ‘+’ characters (e.g. ‘label+text’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.funnelarea.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variableslabel,color,value,textandpercent. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace’s sectors. To be seen, trace
hoverinfomust contain a “text” flag.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
insidetextfont¶ Sets the font used for
textinfolying inside the sector.The ‘insidetextfont’ property is an instance of Insidetextfont that may be specified as:
An instance of
plotly.graph_objects.funnelarea.InsidetextfontA dict of string/value properties that will be passed to the Insidetextfont constructor
- Returns
- Return type
-
property
label0¶ Alternate to
labels. Builds a numeric set of labels. Use withdlabelwherelabel0is the starting label anddlabelthe step.- The ‘label0’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
labels¶ Sets the sector labels. If
labelsentries are duplicated, we sum associatedvaluesor simply count occurrences ifvaluesis not provided. For other array attributes (including color) we use the first non-empty entry among all occurrences of the label.The ‘labels’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
labelssrc¶ Sets the source reference on Chart Studio Cloud for
labels.The ‘labelssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.funnelarea.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.funnelarea.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
scalegroup¶ If there are multiple funnelareas that should be sized according to their totals, link them by providing a non-empty group id here shared by every trace in the same group.
- The ‘scalegroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.funnelarea.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets text elements associated with each sector. If trace
textinfocontains a “text” flag, these elements will be seen on the chart. If tracehoverinfocontains a “text” flag and “hovertext” is not set, these elements will be seen in the hover labels.The ‘text’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
textfont¶ Sets the font used for
textinfo.The ‘textfont’ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.funnelarea.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
textinfo¶ Determines which trace information appear on the graph.
The ‘textinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘label’, ‘text’, ‘value’, ‘percent’] joined with ‘+’ characters (e.g. ‘label+text’) OR exactly one of [‘none’] (e.g. ‘none’)
- Returns
- Return type
Any
-
property
textposition¶ Specifies the location of the
textinfo.- The ‘textposition’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘inside’, ‘none’]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
textpositionsrc¶ Sets the source reference on Chart Studio Cloud for
textposition.The ‘textpositionsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
texttemplate¶ Template string used for rendering the information text that appears on points. Note that this will override
textinfo. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that arearrayOk: true) are available. Finally, the template string has access to variableslabel,color,value,textandpercent.- The ‘texttemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
texttemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘texttemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
texttemplatesrc¶ Sets the source reference on Chart Studio Cloud for
texttemplate.The ‘texttemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
title¶ The ‘title’ property is an instance of Title that may be specified as:
An instance of
plotly.graph_objects.funnelarea.TitleA dict of string/value properties that will be passed to the Title constructor
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
values¶ Sets the values of the sectors. If omitted, we count occurrences of each label.
The ‘values’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
valuessrc¶ Sets the source reference on Chart Studio Cloud for
values.The ‘valuessrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.template.data.Heatmap(arg=None, autocolorscale=None, coloraxis=None, colorbar=None, colorscale=None, connectgaps=None, customdata=None, customdatasrc=None, dx=None, dy=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hoverongaps=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, meta=None, metasrc=None, name=None, opacity=None, reversescale=None, showlegend=None, showscale=None, stream=None, text=None, textfont=None, textsrc=None, texttemplate=None, texttemplatefallback=None, transpose=None, uid=None, uirevision=None, visible=None, x=None, x0=None, xaxis=None, xcalendar=None, xgap=None, xhoverformat=None, xperiod=None, xperiod0=None, xperiodalignment=None, xsrc=None, xtype=None, y=None, y0=None, yaxis=None, ycalendar=None, ygap=None, yhoverformat=None, yperiod=None, yperiod0=None, yperiodalignment=None, ysrc=None, ytype=None, z=None, zauto=None, zhoverformat=None, zmax=None, zmid=None, zmin=None, zorder=None, zsmooth=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.heatmap.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usezminandzmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
connectgaps¶ Determines whether or not gaps (i.e. {nan} or missing values) in the
zdata are filled in. It is defaulted to true ifzis a one dimensional array andzsmoothis not false; otherwise it is defaulted to false.- The ‘connectgaps’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
dx¶ Sets the x coordinate step. See
x0for more info.- The ‘dx’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
dy¶ Sets the y coordinate step. See
y0for more info.- The ‘dy’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.heatmap.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hoverongaps¶ Determines whether or not gaps (i.e. {nan} or missing values) in the
zdata have hover labels associated with them.- The ‘hoverongaps’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.The ‘hovertext’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.heatmap.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
reversescale¶ Reverses the color mapping if true. If true,
zminwill correspond to the last color in the array andzmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.heatmap.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets the text elements associated with each z value.
The ‘text’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
textfont¶ Sets the text font.
The ‘textfont’ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.heatmap.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
texttemplate¶ Template string used for rendering the information text that appears on points. Note that this will override
textinfo. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablesx,y,zandtext.- The ‘texttemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
texttemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘texttemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
transpose¶ Transposes the z data.
- The ‘transpose’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
x¶ Sets the x coordinates.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
x0¶ Alternate to
x. Builds a linear space of x coordinates. Use withdxwherex0is the starting coordinate anddxthe step.The ‘x0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xcalendar¶ Sets the calendar system to use with
xdate data.- The ‘xcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
xgap¶ Sets the horizontal gap (in pixels) between bricks.
- The ‘xgap’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the x axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘xperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the x0 axis. Whenx0periodis round number of weeks, thex0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘xperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the x axis.- The ‘xperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
xtype¶ If “array”, the heatmap’s x coordinates are given by “x” (the default behavior when
xis provided). If “scaled”, the heatmap’s x coordinates are given by “x0” and “dx” (the default behavior whenxis not provided).- The ‘xtype’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘array’, ‘scaled’]
- Returns
- Return type
Any
-
property
y¶ Sets the y coordinates.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
y0¶ Alternate to
y. Builds a linear space of y coordinates. Use withdywherey0is the starting coordinate anddythe step.The ‘y0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
ycalendar¶ Sets the calendar system to use with
ydate data.- The ‘ycalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
ygap¶ Sets the vertical gap (in pixels) between bricks.
- The ‘ygap’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
yperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the y axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘yperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
yperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the y0 axis. Wheny0periodis round number of weeks, they0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘yperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the y axis.- The ‘yperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ytype¶ If “array”, the heatmap’s y coordinates are given by “y” (the default behavior when
yis provided) If “scaled”, the heatmap’s y coordinates are given by “y0” and “dy” (the default behavior whenyis not provided)- The ‘ytype’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘array’, ‘scaled’]
- Returns
- Return type
Any
-
property
z¶ Sets the z data.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
z) or the bounds set inzminandzmaxDefaults tofalsewhenzminandzmaxare set by the user.- The ‘zauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
zhoverformat¶ Sets the hover text formatting rulefor
zusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format.- The ‘zhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
zmax¶ Sets the upper bound of the color domain. Value should have the same units as in
zand if set,zminmust be set as well.- The ‘zmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmid¶ Sets the mid-point of the color domain by scaling
zminand/orzmaxto be equidistant to this point. Value should have the same units as inz. Has no effect whenzautoisfalse.- The ‘zmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmin¶ Sets the lower bound of the color domain. Value should have the same units as in
zand if set,zmaxmust be set as well.- The ‘zmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
zsmooth¶ Picks a smoothing algorithm use to smooth
zdata.- The ‘zsmooth’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘fast’, ‘best’, False]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.template.data.Histogram(arg=None, alignmentgroup=None, autobinx=None, autobiny=None, bingroup=None, cliponaxis=None, constraintext=None, cumulative=None, customdata=None, customdatasrc=None, error_x=None, error_y=None, histfunc=None, histnorm=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, insidetextanchor=None, insidetextfont=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, marker=None, meta=None, metasrc=None, name=None, nbinsx=None, nbinsy=None, offsetgroup=None, opacity=None, orientation=None, outsidetextfont=None, selected=None, selectedpoints=None, showlegend=None, stream=None, text=None, textangle=None, textfont=None, textposition=None, textsrc=None, texttemplate=None, texttemplatefallback=None, uid=None, uirevision=None, unselected=None, visible=None, x=None, xaxis=None, xbins=None, xcalendar=None, xhoverformat=None, xsrc=None, y=None, yaxis=None, ybins=None, ycalendar=None, yhoverformat=None, ysrc=None, zorder=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
alignmentgroup¶ Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently.
- The ‘alignmentgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
autobinx¶ since v1.42 each bin attribute is auto-determined separately and
autobinxis not needed. However, we acceptautobinx: trueorfalseand will updatexbinsaccordingly before deletingautobinxfrom the trace.- The ‘autobinx’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
- Type
Obsolete
-
property
autobiny¶ since v1.42 each bin attribute is auto-determined separately and
autobinyis not needed. However, we acceptautobiny: trueorfalseand will updateybinsaccordingly before deletingautobinyfrom the trace.- The ‘autobiny’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
- Type
Obsolete
-
property
bingroup¶ Set a group of histogram traces which will have compatible bin settings. Note that traces on the same subplot and with the same “orientation” under
barmode“stack”, “relative” and “group” are forced into the same bingroup, Usingbingroup, traces underbarmode“overlay” and on different axes (of the same axis type) can have compatible bin settings. Note that histogram and histogram2d* trace can share the samebingroup- The ‘bingroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
cliponaxis¶ Determines whether the text nodes are clipped about the subplot axes. To show the text nodes above axis lines and tick labels, make sure to set
xaxis.layerandyaxis.layerto below traces.- The ‘cliponaxis’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
constraintext¶ Constrain the size of text inside or outside a bar to be no larger than the bar itself.
- The ‘constraintext’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘inside’, ‘outside’, ‘both’, ‘none’]
- Returns
- Return type
Any
-
property
cumulative¶ The ‘cumulative’ property is an instance of Cumulative that may be specified as:
An instance of
plotly.graph_objects.histogram.CumulativeA dict of string/value properties that will be passed to the Cumulative constructor
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
error_x¶ The ‘error_x’ property is an instance of ErrorX that may be specified as:
An instance of
plotly.graph_objects.histogram.ErrorXA dict of string/value properties that will be passed to the ErrorX constructor
- Returns
- Return type
-
property
error_y¶ The ‘error_y’ property is an instance of ErrorY that may be specified as:
An instance of
plotly.graph_objects.histogram.ErrorYA dict of string/value properties that will be passed to the ErrorY constructor
- Returns
- Return type
-
property
histfunc¶ 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.
- The ‘histfunc’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘count’, ‘sum’, ‘avg’, ‘min’, ‘max’]
- Returns
- Return type
Any
-
property
histnorm¶ 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).
- The ‘histnorm’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘’, ‘percent’, ‘probability’, ‘density’, ‘probability density’]
- Returns
- Return type
Any
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.histogram.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablebinNumberAnything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
insidetextanchor¶ Determines if texts are kept at center or start/end points in
textposition“inside” mode.- The ‘insidetextanchor’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘end’, ‘middle’, ‘start’]
- Returns
- Return type
Any
-
property
insidetextfont¶ Sets the font used for
textlying inside the bar.The ‘insidetextfont’ property is an instance of Insidetextfont that may be specified as:
An instance of
plotly.graph_objects.histogram.InsidetextfontA dict of string/value properties that will be passed to the Insidetextfont constructor
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.histogram.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.histogram.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
nbinsx¶ Specifies the maximum number of desired bins. This value will be used in an algorithm that will decide the optimal bin size such that the histogram best visualizes the distribution of the data. Ignored if
xbins.sizeis provided.- The ‘nbinsx’ property is an integer and may be specified as:
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
- Returns
- Return type
-
property
nbinsy¶ Specifies the maximum number of desired bins. This value will be used in an algorithm that will decide the optimal bin size such that the histogram best visualizes the distribution of the data. Ignored if
ybins.sizeis provided.- The ‘nbinsy’ property is an integer and may be specified as:
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
- Returns
- Return type
-
property
offsetgroup¶ Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up.
- The ‘offsetgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
orientation¶ Sets the orientation of the bars. With “v” (“h”), the value of the each bar spans along the vertical (horizontal).
- The ‘orientation’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘v’, ‘h’]
- Returns
- Return type
Any
-
property
outsidetextfont¶ Sets the font used for
textlying outside the bar.The ‘outsidetextfont’ property is an instance of Outsidetextfont that may be specified as:
An instance of
plotly.graph_objects.histogram.OutsidetextfontA dict of string/value properties that will be passed to the Outsidetextfont constructor
- Returns
- Return type
-
property
selected¶ The ‘selected’ property is an instance of Selected that may be specified as:
An instance of
plotly.graph_objects.histogram.SelectedA dict of string/value properties that will be passed to the Selected constructor
- Returns
- Return type
-
property
selectedpoints¶ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselectedare turned on for all points, whereas, any other non-array values means no selection all where theselectedandunselectedstyles have no effect.The ‘selectedpoints’ property accepts values of any type
- Returns
- Return type
Any
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.histogram.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace’s coordinates.
- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textangle¶ Sets the angle of the tick labels with respect to the bar. For example, a
tickangleof -90 draws the tick labels vertically. With “auto” the texts may automatically be rotated to fit with the maximum size in bars.The ‘textangle’ property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this range are converted to the equivalent value (e.g. 270 is converted to -90).
- Returns
- Return type
int|float
-
property
textfont¶ Sets the text font.
The ‘textfont’ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.histogram.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
textposition¶ Specifies the location of the
text. “inside” positionstextinside, next to the bar end (rotated and scaled if needed). “outside” positionstextoutside, 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 positiontextinside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If “none”, no text appears.- The ‘textposition’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘inside’, ‘outside’, ‘auto’, ‘none’]
- Returns
- Return type
Any
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
texttemplate¶ Template string used for rendering the information text that appears on points. Note that this will override
textinfo. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that arearrayOk: true) are available. Finally, the template string has access to variableslabelandvalue.- The ‘texttemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
texttemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘texttemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
unselected¶ The ‘unselected’ property is an instance of Unselected that may be specified as:
An instance of
plotly.graph_objects.histogram.UnselectedA dict of string/value properties that will be passed to the Unselected constructor
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
x¶ Sets the sample data to be binned on the x axis.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xbins¶ The ‘xbins’ property is an instance of XBins that may be specified as:
An instance of
plotly.graph_objects.histogram.XBinsA dict of string/value properties that will be passed to the XBins constructor
- Returns
- Return type
-
property
xcalendar¶ Sets the calendar system to use with
xdate data.- The ‘xcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
y¶ Sets the sample data to be binned on the y axis.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
ybins¶ The ‘ybins’ property is an instance of YBins that may be specified as:
An instance of
plotly.graph_objects.histogram.YBinsA dict of string/value properties that will be passed to the YBins constructor
- Returns
- Return type
-
property
ycalendar¶ Sets the calendar system to use with
ydate data.- The ‘ycalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Histogram2d(arg=None, autobinx=None, autobiny=None, autocolorscale=None, bingroup=None, coloraxis=None, colorbar=None, colorscale=None, customdata=None, customdatasrc=None, histfunc=None, histnorm=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, marker=None, meta=None, metasrc=None, name=None, nbinsx=None, nbinsy=None, opacity=None, reversescale=None, showlegend=None, showscale=None, stream=None, textfont=None, texttemplate=None, texttemplatefallback=None, uid=None, uirevision=None, visible=None, x=None, xaxis=None, xbingroup=None, xbins=None, xcalendar=None, xgap=None, xhoverformat=None, xsrc=None, y=None, yaxis=None, ybingroup=None, ybins=None, ycalendar=None, ygap=None, yhoverformat=None, ysrc=None, z=None, zauto=None, zhoverformat=None, zmax=None, zmid=None, zmin=None, zsmooth=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
autobinx¶ since v1.42 each bin attribute is auto-determined separately and
autobinxis not needed. However, we acceptautobinx: trueorfalseand will updatexbinsaccordingly before deletingautobinxfrom the trace.- The ‘autobinx’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
- Type
Obsolete
-
property
autobiny¶ since v1.42 each bin attribute is auto-determined separately and
autobinyis not needed. However, we acceptautobiny: trueorfalseand will updateybinsaccordingly before deletingautobinyfrom the trace.- The ‘autobiny’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
- Type
Obsolete
-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
bingroup¶ Set the
xbingroupandybingroupdefault prefix For example, setting abingroupof 1 on two histogram2d traces will make them their x-bins and y-bins match separately.- The ‘bingroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.histogram2d.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usezminandzmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
histfunc¶ 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.
- The ‘histfunc’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘count’, ‘sum’, ‘avg’, ‘min’, ‘max’]
- Returns
- Return type
Any
-
property
histnorm¶ 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).
- The ‘histnorm’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘’, ‘percent’, ‘probability’, ‘density’, ‘probability density’]
- Returns
- Return type
Any
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.histogram2d.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablezAnything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.histogram2d.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.histogram2d.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
nbinsx¶ Specifies the maximum number of desired bins. This value will be used in an algorithm that will decide the optimal bin size such that the histogram best visualizes the distribution of the data. Ignored if
xbins.sizeis provided.- The ‘nbinsx’ property is an integer and may be specified as:
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
- Returns
- Return type
-
property
nbinsy¶ Specifies the maximum number of desired bins. This value will be used in an algorithm that will decide the optimal bin size such that the histogram best visualizes the distribution of the data. Ignored if
ybins.sizeis provided.- The ‘nbinsy’ property is an integer and may be specified as:
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
reversescale¶ Reverses the color mapping if true. If true,
zminwill correspond to the last color in the array andzmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.histogram2d.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
textfont¶ Sets the text font.
The ‘textfont’ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.histogram2d.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
texttemplate¶ Template string used for rendering the information text that appears on points. Note that this will override
textinfo. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablez- The ‘texttemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
texttemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘texttemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
x¶ Sets the sample data to be binned on the x axis.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xbingroup¶ Set a group of histogram traces which will have compatible x-bin settings. Using
xbingroup, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible x-bin settings. Note that the samexbingroupvalue can be used to set (1D) histogrambingroup- The ‘xbingroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xbins¶ The ‘xbins’ property is an instance of XBins that may be specified as:
An instance of
plotly.graph_objects.histogram2d.XBinsA dict of string/value properties that will be passed to the XBins constructor
- Returns
- Return type
-
property
xcalendar¶ Sets the calendar system to use with
xdate data.- The ‘xcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
xgap¶ Sets the horizontal gap (in pixels) between bricks.
- The ‘xgap’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
y¶ Sets the sample data to be binned on the y axis.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
ybingroup¶ Set a group of histogram traces which will have compatible y-bin settings. Using
ybingroup, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible y-bin settings. Note that the sameybingroupvalue can be used to set (1D) histogrambingroup- The ‘ybingroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ybins¶ The ‘ybins’ property is an instance of YBins that may be specified as:
An instance of
plotly.graph_objects.histogram2d.YBinsA dict of string/value properties that will be passed to the YBins constructor
- Returns
- Return type
-
property
ycalendar¶ Sets the calendar system to use with
ydate data.- The ‘ycalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
ygap¶ Sets the vertical gap (in pixels) between bricks.
- The ‘ygap’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
z¶ Sets the aggregation data.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
z) or the bounds set inzminandzmaxDefaults tofalsewhenzminandzmaxare set by the user.- The ‘zauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
zhoverformat¶ Sets the hover text formatting rulefor
zusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format.- The ‘zhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
zmax¶ Sets the upper bound of the color domain. Value should have the same units as in
zand if set,zminmust be set as well.- The ‘zmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmid¶ Sets the mid-point of the color domain by scaling
zminand/orzmaxto be equidistant to this point. Value should have the same units as inz. Has no effect whenzautoisfalse.- The ‘zmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmin¶ Sets the lower bound of the color domain. Value should have the same units as in
zand if set,zmaxmust be set as well.- The ‘zmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zsmooth¶ Picks a smoothing algorithm use to smooth
zdata.- The ‘zsmooth’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘fast’, ‘best’, False]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.template.data.Histogram2dContour(arg=None, autobinx=None, autobiny=None, autocolorscale=None, autocontour=None, bingroup=None, coloraxis=None, colorbar=None, colorscale=None, contours=None, customdata=None, customdatasrc=None, histfunc=None, histnorm=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, ids=None, idssrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, marker=None, meta=None, metasrc=None, name=None, nbinsx=None, nbinsy=None, ncontours=None, opacity=None, reversescale=None, showlegend=None, showscale=None, stream=None, textfont=None, texttemplate=None, texttemplatefallback=None, uid=None, uirevision=None, visible=None, x=None, xaxis=None, xbingroup=None, xbins=None, xcalendar=None, xhoverformat=None, xsrc=None, y=None, yaxis=None, ybingroup=None, ybins=None, ycalendar=None, yhoverformat=None, ysrc=None, z=None, zauto=None, zhoverformat=None, zmax=None, zmid=None, zmin=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
autobinx¶ since v1.42 each bin attribute is auto-determined separately and
autobinxis not needed. However, we acceptautobinx: trueorfalseand will updatexbinsaccordingly before deletingautobinxfrom the trace.- The ‘autobinx’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
- Type
Obsolete
-
property
autobiny¶ since v1.42 each bin attribute is auto-determined separately and
autobinyis not needed. However, we acceptautobiny: trueorfalseand will updateybinsaccordingly before deletingautobinyfrom the trace.- The ‘autobiny’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
- Type
Obsolete
-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
autocontour¶ Determines whether or not the contour level attributes are picked by an algorithm. If True, the number of contour levels can be set in
ncontours. If False, set the contour level attributes incontours.- The ‘autocontour’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
bingroup¶ Set the
xbingroupandybingroupdefault prefix For example, setting abingroupof 1 on two histogram2d traces will make them their x-bins and y-bins match separately.- The ‘bingroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.histogram2dcontour.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usezminandzmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
contours¶ The ‘contours’ property is an instance of Contours that may be specified as:
An instance of
plotly.graph_objects.histogram2dcontour.ContoursA dict of string/value properties that will be passed to the Contours constructor
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
histfunc¶ 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.
- The ‘histfunc’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘count’, ‘sum’, ‘avg’, ‘min’, ‘max’]
- Returns
- Return type
Any
-
property
histnorm¶ 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).
- The ‘histnorm’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘’, ‘percent’, ‘probability’, ‘density’, ‘probability density’]
- Returns
- Return type
Any
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.histogram2dcontour.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablezAnything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.histogram2dcontour.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
line¶ The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.histogram2dcontour.LineA dict of string/value properties that will be passed to the Line constructor
- Returns
- Return type
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.histogram2dcontour.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
nbinsx¶ Specifies the maximum number of desired bins. This value will be used in an algorithm that will decide the optimal bin size such that the histogram best visualizes the distribution of the data. Ignored if
xbins.sizeis provided.- The ‘nbinsx’ property is an integer and may be specified as:
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
- Returns
- Return type
-
property
nbinsy¶ Specifies the maximum number of desired bins. This value will be used in an algorithm that will decide the optimal bin size such that the histogram best visualizes the distribution of the data. Ignored if
ybins.sizeis provided.- The ‘nbinsy’ property is an integer and may be specified as:
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
- Returns
- Return type
-
property
ncontours¶ Sets the maximum number of contour levels. The actual number of contours will be chosen automatically to be less than or equal to the value of
ncontours. Has an effect only ifautocontouris True or ifcontours.sizeis missing.- The ‘ncontours’ property is an integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 9223372036854775807]
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
reversescale¶ Reverses the color mapping if true. If true,
zminwill correspond to the last color in the array andzmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.histogram2dcontour.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
textfont¶ For this trace it only has an effect if
coloringis set to “heatmap”. Sets the text font.The ‘textfont’ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.histogram2dcontour.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
texttemplate¶ For this trace it only has an effect if
coloringis set to “heatmap”. Template string used for rendering the information text that appears on points. Note that this will overridetextinfo. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablesx,y,zandtext.- The ‘texttemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
texttemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘texttemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
x¶ Sets the sample data to be binned on the x axis.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xbingroup¶ Set a group of histogram traces which will have compatible x-bin settings. Using
xbingroup, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible x-bin settings. Note that the samexbingroupvalue can be used to set (1D) histogrambingroup- The ‘xbingroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xbins¶ The ‘xbins’ property is an instance of XBins that may be specified as:
An instance of
plotly.graph_objects.histogram2dcontour.XBinsA dict of string/value properties that will be passed to the XBins constructor
- Returns
- Return type
-
property
xcalendar¶ Sets the calendar system to use with
xdate data.- The ‘xcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
y¶ Sets the sample data to be binned on the y axis.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
ybingroup¶ Set a group of histogram traces which will have compatible y-bin settings. Using
ybingroup, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible y-bin settings. Note that the sameybingroupvalue can be used to set (1D) histogrambingroup- The ‘ybingroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ybins¶ The ‘ybins’ property is an instance of YBins that may be specified as:
An instance of
plotly.graph_objects.histogram2dcontour.YBinsA dict of string/value properties that will be passed to the YBins constructor
- Returns
- Return type
-
property
ycalendar¶ Sets the calendar system to use with
ydate data.- The ‘ycalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
z¶ Sets the aggregation data.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
z) or the bounds set inzminandzmaxDefaults tofalsewhenzminandzmaxare set by the user.- The ‘zauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
zhoverformat¶ Sets the hover text formatting rulefor
zusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format.- The ‘zhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
zmax¶ Sets the upper bound of the color domain. Value should have the same units as in
zand if set,zminmust be set as well.- The ‘zmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmid¶ Sets the mid-point of the color domain by scaling
zminand/orzmaxto be equidistant to this point. Value should have the same units as inz. Has no effect whenzautoisfalse.- The ‘zmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
zmin¶ Sets the lower bound of the color domain. Value should have the same units as in
zand if set,zmaxmust be set as well.- The ‘zmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
-
class
plotly.graph_objects.layout.template.data.Icicle(arg=None, branchvalues=None, count=None, customdata=None, customdatasrc=None, domain=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, insidetextfont=None, labels=None, labelssrc=None, leaf=None, legend=None, legendgrouptitle=None, legendrank=None, legendwidth=None, level=None, marker=None, maxdepth=None, meta=None, metasrc=None, name=None, opacity=None, outsidetextfont=None, parents=None, parentssrc=None, pathbar=None, root=None, sort=None, stream=None, text=None, textfont=None, textinfo=None, textposition=None, textsrc=None, texttemplate=None, texttemplatefallback=None, texttemplatesrc=None, tiling=None, uid=None, uirevision=None, values=None, valuessrc=None, visible=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
branchvalues¶ Determines how the items in
valuesare summed. When set to “total”, items invaluesare taken to be value of all its descendants. When set to “remainder”, items invaluescorresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves.- The ‘branchvalues’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘remainder’, ‘total’]
- Returns
- Return type
Any
-
property
count¶ Determines default for
valueswhen it is not provided, by inferring a 1 for each of the “leaves” and/or “branches”, otherwise 0.The ‘count’ property is a flaglist and may be specified as a string containing:
Any combination of [‘branches’, ‘leaves’] joined with ‘+’ characters (e.g. ‘branches+leaves’)
- Returns
- Return type
Any
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
domain¶ The ‘domain’ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.icicle.DomainA dict of string/value properties that will be passed to the Domain constructor
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘label’, ‘text’, ‘value’, ‘name’, ‘current path’, ‘percent root’, ‘percent entry’, ‘percent parent’] joined with ‘+’ characters (e.g. ‘label+text’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.icicle.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablescurrentPath,root,entry,percentRoot,percentEntryandpercentParent. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace’s sectors. To be seen, trace
hoverinfomust contain a “text” flag.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
insidetextfont¶ Sets the font used for
textinfolying inside the sector.The ‘insidetextfont’ property is an instance of Insidetextfont that may be specified as:
An instance of
plotly.graph_objects.icicle.InsidetextfontA dict of string/value properties that will be passed to the Insidetextfont constructor
- Returns
- Return type
-
property
labels¶ Sets the labels of each of the sectors.
The ‘labels’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
labelssrc¶ Sets the source reference on Chart Studio Cloud for
labels.The ‘labelssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
leaf¶ The ‘leaf’ property is an instance of Leaf that may be specified as:
An instance of
plotly.graph_objects.icicle.LeafA dict of string/value properties that will be passed to the Leaf constructor
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.icicle.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
level¶ Sets the level from which this trace hierarchy is rendered. Set
levelto''to start from the root node in the hierarchy. Must be an “id” ifidsis filled in, otherwise plotly attempts to find a matching item inlabels.The ‘level’ property accepts values of any type
- Returns
- Return type
Any
-
property
marker¶ The ‘marker’ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.icicle.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
maxdepth¶ Sets the number of rendered sectors from any given
level. Setmaxdepthto “-1” to render all the levels in the hierarchy.- The ‘maxdepth’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
outsidetextfont¶ Sets the font used for
textinfolying outside the sector. This option refers to the root of the hierarchy presented on top left corner of a treemap graph. Please note that if a hierarchy has multiple root nodes, this option won’t have any effect andinsidetextfontwould be used.The ‘outsidetextfont’ property is an instance of Outsidetextfont that may be specified as:
An instance of
plotly.graph_objects.icicle.OutsidetextfontA dict of string/value properties that will be passed to the Outsidetextfont constructor
- Returns
- Return type
-
property
parents¶ Sets the parent sectors for each of the sectors. Empty string items ‘’ are understood to reference the root node in the hierarchy. If
idsis filled,parentsitems are understood to be “ids” themselves. Whenidsis not set, plotly attempts to find matching items inlabels, but beware they must be unique.The ‘parents’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
parentssrc¶ Sets the source reference on Chart Studio Cloud for
parents.The ‘parentssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
pathbar¶ The ‘pathbar’ property is an instance of Pathbar that may be specified as:
An instance of
plotly.graph_objects.icicle.PathbarA dict of string/value properties that will be passed to the Pathbar constructor
- Returns
- Return type
-
property
root¶ The ‘root’ property is an instance of Root that may be specified as:
An instance of
plotly.graph_objects.icicle.RootA dict of string/value properties that will be passed to the Root constructor
- Returns
- Return type
-
property
sort¶ Determines whether or not the sectors are reordered from largest to smallest.
- The ‘sort’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.icicle.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets text elements associated with each sector. If trace
textinfocontains a “text” flag, these elements will be seen on the chart. If tracehoverinfocontains a “text” flag and “hovertext” is not set, these elements will be seen in the hover labels.The ‘text’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
textfont¶ Sets the font used for
textinfo.The ‘textfont’ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.icicle.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
textinfo¶ Determines which trace information appear on the graph.
The ‘textinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘label’, ‘text’, ‘value’, ‘current path’, ‘percent root’, ‘percent entry’, ‘percent parent’] joined with ‘+’ characters (e.g. ‘label+text’) OR exactly one of [‘none’] (e.g. ‘none’)
- Returns
- Return type
Any
-
property
textposition¶ Sets the positions of the
textelements.- The ‘textposition’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘top left’, ‘top center’, ‘top right’, ‘middle left’, ‘middle center’, ‘middle right’, ‘bottom left’, ‘bottom center’, ‘bottom right’]
- Returns
- Return type
Any
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
texttemplate¶ Template string used for rendering the information text that appears on points. Note that this will override
textinfo. Variables are inserted using %{variable}, for example “y: %{y}”. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. All attributes that can be specified per-point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablescurrentPath,root,entry,percentRoot,percentEntry,percentParent,labelandvalue.- The ‘texttemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
texttemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘texttemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
texttemplatesrc¶ Sets the source reference on Chart Studio Cloud for
texttemplate.The ‘texttemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
tiling¶ The ‘tiling’ property is an instance of Tiling that may be specified as:
An instance of
plotly.graph_objects.icicle.TilingA dict of string/value properties that will be passed to the Tiling constructor
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
values¶ Sets the values associated with each of the sectors. Use with
branchvaluesto determine how the values are summed.The ‘values’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
valuessrc¶ Sets the source reference on Chart Studio Cloud for
values.The ‘valuessrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.template.data.Image(arg=None, colormodel=None, customdata=None, customdatasrc=None, dx=None, dy=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, legend=None, legendgrouptitle=None, legendrank=None, legendwidth=None, meta=None, metasrc=None, name=None, opacity=None, source=None, stream=None, text=None, textsrc=None, uid=None, uirevision=None, visible=None, x0=None, xaxis=None, y0=None, yaxis=None, z=None, zmax=None, zmin=None, zorder=None, zsmooth=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
colormodel¶ Color model used to map the numerical color components described in
zinto colors. Ifsourceis specified, this attribute will be set torgba256otherwise it defaults torgb.- The ‘colormodel’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘rgb’, ‘rgba’, ‘rgba256’, ‘hsl’, ‘hsla’]
- Returns
- Return type
Any
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
dx¶ Set the pixel’s horizontal size.
- The ‘dx’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
dy¶ Set the pixel’s vertical size
- The ‘dy’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘color’, ‘name’, ‘text’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.image.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablesz,colorandcolormodel. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.The ‘hovertext’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.image.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
source¶ Specifies the data URI of the image to be visualized. The URI consists of “data:image/[<media subtype>][;base64],<data>”
- The ‘source’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.image.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets the text elements associated with each z value.
The ‘text’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
x0¶ Set the image’s x position. The left edge of the image (or the right edge if the x axis is reversed or dx is negative) will be found at xmin=x0-dx/2
The ‘x0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
y0¶ Set the image’s y position. The top edge of the image (or the bottom edge if the y axis is NOT reversed or if dy is negative) will be found at ymin=y0-dy/2. By default when an image trace is included, the y axis will be reversed so that the image is right-side-up, but you can disable this by setting yaxis.autorange=true or by providing an explicit y axis range.
The ‘y0’ property accepts values of any type
- Returns
- Return type
Any
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
z¶ A 2-dimensional array in which each element is an array of 3 or 4 numbers representing a color.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zmax¶ - Array defining the higher bound for each color component. Note
that the default value will depend on the colormodel. For the
rgbcolormodel, it is [255, 255, 255]. For thergbacolormodel, it is [255, 255, 255, 1]. For thergba256colormodel, it is [255, 255, 255, 255]. For thehslcolormodel, it is [360, 100, 100]. For thehslacolormodel, it is [360, 100, 100, 1].The ‘zmax’ property is an info array that may be specified as:
a list or tuple of 4 elements where:
- The ‘zmax[0]’ property is a number and may be specified as:
An int or float
- The ‘zmax[1]’ property is a number and may be specified as:
An int or float
- The ‘zmax[2]’ property is a number and may be specified as:
An int or float
- The ‘zmax[3]’ property is a number and may be specified as:
An int or float
list
-
property
zmin¶ - Array defining the lower bound for each color component. Note
that the default value will depend on the colormodel. For the
rgbcolormodel, it is [0, 0, 0]. For thergbacolormodel, it is [0, 0, 0, 0]. For thergba256colormodel, it is [0, 0, 0, 0]. For thehslcolormodel, it is [0, 0, 0]. For thehslacolormodel, it is [0, 0, 0, 0].The ‘zmin’ property is an info array that may be specified as:
a list or tuple of 4 elements where:
- The ‘zmin[0]’ property is a number and may be specified as:
An int or float
- The ‘zmin[1]’ property is a number and may be specified as:
An int or float
- The ‘zmin[2]’ property is a number and may be specified as:
An int or float
- The ‘zmin[3]’ property is a number and may be specified as:
An int or float
list
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
zsmooth¶ Picks a smoothing algorithm used to smooth
zdata. This only applies for image traces that use thesourceattribute.- The ‘zsmooth’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘fast’, False]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.template.data.Indicator(arg=None, align=None, customdata=None, customdatasrc=None, delta=None, domain=None, gauge=None, ids=None, idssrc=None, legend=None, legendgrouptitle=None, legendrank=None, legendwidth=None, meta=None, metasrc=None, mode=None, name=None, number=None, stream=None, title=None, uid=None, uirevision=None, value=None, visible=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
align¶ Sets the horizontal alignment of the
textwithin the box. Note that this attribute has no effect if an angular gauge is displayed: in this case, it is always centered- The ‘align’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘left’, ‘center’, ‘right’]
- Returns
- Return type
Any
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
delta¶ The ‘delta’ property is an instance of Delta that may be specified as:
An instance of
plotly.graph_objects.indicator.DeltaA dict of string/value properties that will be passed to the Delta constructor
- Returns
- Return type
-
property
domain¶ The ‘domain’ property is an instance of Domain that may be specified as:
An instance of
plotly.graph_objects.indicator.DomainA dict of string/value properties that will be passed to the Domain constructor
- Returns
- Return type
-
property
gauge¶ The gauge of the Indicator plot.
The ‘gauge’ property is an instance of Gauge that may be specified as:
An instance of
plotly.graph_objects.indicator.GaugeA dict of string/value properties that will be passed to the Gauge constructor
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.indicator.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
mode¶ Determines how the value is displayed on the graph.
numberdisplays the value numerically in text.deltadisplays the difference to a reference value in text. Finally,gaugedisplays the value graphically on an axis.The ‘mode’ property is a flaglist and may be specified as a string containing:
Any combination of [‘number’, ‘delta’, ‘gauge’] joined with ‘+’ characters (e.g. ‘number+delta’)
- Returns
- Return type
Any
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
number¶ The ‘number’ property is an instance of Number that may be specified as:
An instance of
plotly.graph_objects.indicator.NumberA dict of string/value properties that will be passed to the Number constructor
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.indicator.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
title¶ The ‘title’ property is an instance of Title that may be specified as:
An instance of
plotly.graph_objects.indicator.TitleA dict of string/value properties that will be passed to the Title constructor
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
value¶ Sets the number to be displayed.
- The ‘value’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
-
class
plotly.graph_objects.layout.template.data.Isosurface(arg=None, autocolorscale=None, caps=None, cauto=None, cmax=None, cmid=None, cmin=None, coloraxis=None, colorbar=None, colorscale=None, contour=None, customdata=None, customdatasrc=None, flatshading=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, isomax=None, isomin=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, lighting=None, lightposition=None, meta=None, metasrc=None, name=None, opacity=None, reversescale=None, scene=None, showlegend=None, showscale=None, slices=None, spaceframe=None, stream=None, surface=None, text=None, textsrc=None, uid=None, uirevision=None, value=None, valuehoverformat=None, valuesrc=None, visible=None, x=None, xhoverformat=None, xsrc=None, y=None, yhoverformat=None, ysrc=None, z=None, zhoverformat=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
caps¶ The ‘caps’ property is an instance of Caps that may be specified as:
An instance of
plotly.graph_objects.isosurface.CapsA dict of string/value properties that will be passed to the Caps constructor
- Returns
- Return type
-
property
cauto¶ Determines whether or not the color domain is computed with respect to the input data (here
value) or the bounds set incminandcmaxDefaults tofalsewhencminandcmaxare set by the user.- The ‘cauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
cmax¶ Sets the upper bound of the color domain. Value should have the same units as
valueand if set,cminmust be set as well.- The ‘cmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
cmid¶ Sets the mid-point of the color domain by scaling
cminand/orcmaxto be equidistant to this point. Value should have the same units asvalue. Has no effect whencautoisfalse.- The ‘cmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
cmin¶ Sets the lower bound of the color domain. Value should have the same units as
valueand if set,cmaxmust be set as well.- The ‘cmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.isosurface.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usecminandcmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
contour¶ The ‘contour’ property is an instance of Contour that may be specified as:
An instance of
plotly.graph_objects.isosurface.ContourA dict of string/value properties that will be passed to the Contour constructor
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
flatshading¶ Determines whether or not normal smoothing is applied to the meshes, creating meshes with an angular, low-poly look via flat reflections.
- The ‘flatshading’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.isosurface.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
isomax¶ Sets the maximum boundary for iso-surface plot.
- The ‘isomax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
isomin¶ Sets the minimum boundary for iso-surface plot.
- The ‘isomin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.isosurface.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
lighting¶ The ‘lighting’ property is an instance of Lighting that may be specified as:
An instance of
plotly.graph_objects.isosurface.LightingA dict of string/value properties that will be passed to the Lighting constructor
- Returns
- Return type
-
property
lightposition¶ The ‘lightposition’ property is an instance of Lightposition that may be specified as:
An instance of
plotly.graph_objects.isosurface.LightpositionA dict of string/value properties that will be passed to the Lightposition constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the surface. Please note that in the case of using high
opacityvalues for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not perfectly be sorted in depth by the webgl API. This behavior may be improved in the near future and is subject to change.- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
reversescale¶ Reverses the color mapping if true. If true,
cminwill correspond to the last color in the array andcmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
scene¶ Sets a reference between this trace’s 3D coordinate system and a 3D scene. If “scene” (the default value), the (x,y,z) coordinates refer to
layout.scene. If “scene2”, the (x,y,z) coordinates refer tolayout.scene2, and so on.The ‘scene’ property is an identifier of a particular subplot, of type ‘scene’, that may be specified as:
the string ‘scene’ optionally followed by an integer >= 1 (e.g. ‘scene’, ‘scene1’, ‘scene2’, ‘scene3’, etc.)
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
slices¶ The ‘slices’ property is an instance of Slices that may be specified as:
An instance of
plotly.graph_objects.isosurface.SlicesA dict of string/value properties that will be passed to the Slices constructor
- Returns
- Return type
-
property
spaceframe¶ The ‘spaceframe’ property is an instance of Spaceframe that may be specified as:
An instance of
plotly.graph_objects.isosurface.SpaceframeA dict of string/value properties that will be passed to the Spaceframe constructor
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.isosurface.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
surface¶ The ‘surface’ property is an instance of Surface that may be specified as:
An instance of
plotly.graph_objects.isosurface.SurfaceA dict of string/value properties that will be passed to the Surface constructor
- Returns
- Return type
-
property
text¶ Sets the text elements associated with the vertices. If trace
hoverinfocontains a “text” flag and “hovertext” is not set, these elements will be seen in the hover labels.- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
value¶ Sets the 4th dimension (value) of the vertices.
The ‘value’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
valuehoverformat¶ Sets the hover text formatting rulefor
valueusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format.- The ‘valuehoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
valuesrc¶ Sets the source reference on Chart Studio Cloud for
value.The ‘valuesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
x¶ Sets the X coordinates of the vertices on X axis.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
y¶ Sets the Y coordinates of the vertices on Y axis.
The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
z¶ Sets the Z coordinates of the vertices on Z axis.
The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zhoverformat¶ Sets the hover text formatting rulefor
zusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingzaxis.hoverformat.- The ‘zhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Mesh3d(arg=None, alphahull=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, contour=None, customdata=None, customdatasrc=None, delaunayaxis=None, facecolor=None, facecolorsrc=None, flatshading=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, i=None, ids=None, idssrc=None, intensity=None, intensitymode=None, intensitysrc=None, isrc=None, j=None, jsrc=None, k=None, ksrc=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, lighting=None, lightposition=None, meta=None, metasrc=None, name=None, opacity=None, reversescale=None, scene=None, showlegend=None, showscale=None, stream=None, text=None, textsrc=None, uid=None, uirevision=None, vertexcolor=None, vertexcolorsrc=None, visible=None, x=None, xcalendar=None, xhoverformat=None, xsrc=None, y=None, ycalendar=None, yhoverformat=None, ysrc=None, z=None, zcalendar=None, zhoverformat=None, zsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
alphahull¶ Determines how the mesh surface triangles are derived from the set of vertices (points) represented by the
x,yandzarrays, if thei,j,karrays are not supplied. For general use ofmesh3dit is preferred thati,j,kare supplied. If “-1”, Delaunay triangulation is used, which is mainly suitable if the mesh is a single, more or less layer surface that is perpendicular todelaunayaxis. In case thedelaunayaxisintersects the mesh surface at more than one point it will result triangles that are very long in the dimension ofdelaunayaxis. If “>0”, the alpha-shape algorithm is used. In this case, the positivealphahullvalue signals the use of the alpha-shape algorithm, _and_ its value acts as the parameter for the mesh fitting. If 0, the convex-hull algorithm is used. It is suitable for convex bodies or if the intention is to enclose thex,yandzpoint set into a convex hull.- The ‘alphahull’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bycolorscale. In casecolorscaleis unspecified orautocolorscaleis true, the default palette will be chosen according to whether numbers in thecolorarray are all positive, all negative or mixed.- The ‘autocolorscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
cauto¶ Determines whether or not the color domain is computed with respect to the input data (here
intensity) or the bounds set incminandcmaxDefaults tofalsewhencminandcmaxare set by the user.- The ‘cauto’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
cmax¶ Sets the upper bound of the color domain. Value should have the same units as
intensityand if set,cminmust be set as well.- The ‘cmax’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
cmid¶ Sets the mid-point of the color domain by scaling
cminand/orcmaxto be equidistant to this point. Value should have the same units asintensity. Has no effect whencautoisfalse.- The ‘cmid’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
cmin¶ Sets the lower bound of the color domain. Value should have the same units as
intensityand if set,cmaxmust be set as well.- The ‘cmin’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
color¶ Sets the color of the whole mesh
- The ‘color’ property is a color and may be specified as:
A hex string (e.g. ‘#ff0000’)
An rgb/rgba string (e.g. ‘rgb(255,0,0)’)
An hsl/hsla string (e.g. ‘hsl(0,100%,50%)’)
An hsv/hsva string (e.g. ‘hsv(0,100%,100%)’)
A named CSS color: see https://plotly.com/python/css-colors/ for a list
A number that will be interpreted as a color according to mesh3d.colorscale
- Returns
- Return type
-
property
coloraxis¶ Sets a reference to a shared color axis. References to these shared color axes are “coloraxis”, “coloraxis2”, “coloraxis3”, etc. Settings for these shared color axes are set in the layout, under
layout.coloraxis,layout.coloraxis2, etc. Note that multiple color scales can be linked to the same color axis.The ‘coloraxis’ property is an identifier of a particular subplot, of type ‘coloraxis’, that may be specified as:
the string ‘coloraxis’ optionally followed by an integer >= 1 (e.g. ‘coloraxis’, ‘coloraxis1’, ‘coloraxis2’, ‘coloraxis3’, etc.)
- Returns
- Return type
-
property
colorbar¶ The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.mesh3d.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example,
[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]. To control the bounds of the colorscale in color space, usecminandcmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric, Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis, YlGnBu,YlOrRd.The ‘colorscale’ property is a colorscale and may be specified as:
A list of colors that will be spaced evenly to create the colorscale. Many predefined colorscale lists are included in the sequential, diverging, and cyclical modules in the plotly.colors package.
A list of 2-element lists where the first element is the normalized color level value (starting at 0 and ending at 1), and the second item is a valid color string. (e.g. [[0, ‘green’], [0.5, ‘red’], [1.0, ‘rgb(0, 0, 255)’]])
- One of the following named colorscales:
- [‘aggrnyl’, ‘agsunset’, ‘algae’, ‘amp’, ‘armyrose’, ‘balance’,
‘blackbody’, ‘bluered’, ‘blues’, ‘blugrn’, ‘bluyl’, ‘brbg’, ‘brwnyl’, ‘bugn’, ‘bupu’, ‘burg’, ‘burgyl’, ‘cividis’, ‘curl’, ‘darkmint’, ‘deep’, ‘delta’, ‘dense’, ‘earth’, ‘edge’, ‘electric’, ‘emrld’, ‘fall’, ‘geyser’, ‘gnbu’, ‘gray’, ‘greens’, ‘greys’, ‘haline’, ‘hot’, ‘hsv’, ‘ice’, ‘icefire’, ‘inferno’, ‘jet’, ‘magenta’, ‘magma’, ‘matter’, ‘mint’, ‘mrybm’, ‘mygbm’, ‘oranges’, ‘orrd’, ‘oryel’, ‘oxy’, ‘peach’, ‘phase’, ‘picnic’, ‘pinkyl’, ‘piyg’, ‘plasma’, ‘plotly3’, ‘portland’, ‘prgn’, ‘pubu’, ‘pubugn’, ‘puor’, ‘purd’, ‘purp’, ‘purples’, ‘purpor’, ‘rainbow’, ‘rdbu’, ‘rdgy’, ‘rdpu’, ‘rdylbu’, ‘rdylgn’, ‘redor’, ‘reds’, ‘solar’, ‘spectral’, ‘speed’, ‘sunset’, ‘sunsetdark’, ‘teal’, ‘tealgrn’, ‘tealrose’, ‘tempo’, ‘temps’, ‘thermal’, ‘tropic’, ‘turbid’, ‘turbo’, ‘twilight’, ‘viridis’, ‘ylgn’, ‘ylgnbu’, ‘ylorbr’, ‘ylorrd’].
Appending ‘_r’ to a named colorscale reverses it.
- Returns
- Return type
-
property
contour¶ The ‘contour’ property is an instance of Contour that may be specified as:
An instance of
plotly.graph_objects.mesh3d.ContourA dict of string/value properties that will be passed to the Contour constructor
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
delaunayaxis¶ Sets the Delaunay axis, which is the axis that is perpendicular to the surface of the Delaunay triangulation. It has an effect if
i,j,kare not provided andalphahullis set to indicate Delaunay triangulation.- The ‘delaunayaxis’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘x’, ‘y’, ‘z’]
- Returns
- Return type
Any
-
property
facecolor¶ Sets the color of each face Overrides “color” and “vertexcolor”.
The ‘facecolor’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
facecolorsrc¶ Sets the source reference on Chart Studio Cloud for
facecolor.The ‘facecolorsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
flatshading¶ Determines whether or not normal smoothing is applied to the meshes, creating meshes with an angular, low-poly look via flat reflections.
- The ‘flatshading’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.mesh3d.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
i¶ A vector of vertex indices, i.e. integer values between 0 and the length of the vertex vectors, representing the “first” vertex of a triangle. For example,
{i[m], j[m], k[m]}together represent face m (triangle m) in the mesh, wherei[m] = npoints to the triplet{x[n], y[n], z[n]}in the vertex arrays. Therefore, each element inirepresents a point in space, which is the first vertex of a triangle.The ‘i’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
intensity¶ Sets the intensity values for vertices or cells as defined by
intensitymode. It can be used for plotting fields on meshes.The ‘intensity’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
intensitymode¶ Determines the source of
intensityvalues.- The ‘intensitymode’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘vertex’, ‘cell’]
- Returns
- Return type
Any
-
property
intensitysrc¶ Sets the source reference on Chart Studio Cloud for
intensity.The ‘intensitysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
isrc¶ Sets the source reference on Chart Studio Cloud for
i.The ‘isrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
j¶ A vector of vertex indices, i.e. integer values between 0 and the length of the vertex vectors, representing the “second” vertex of a triangle. For example,
{i[m], j[m], k[m]}together represent face m (triangle m) in the mesh, wherej[m] = npoints to the triplet{x[n], y[n], z[n]}in the vertex arrays. Therefore, each element injrepresents a point in space, which is the second vertex of a triangle.The ‘j’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
jsrc¶ Sets the source reference on Chart Studio Cloud for
j.The ‘jsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
k¶ A vector of vertex indices, i.e. integer values between 0 and the length of the vertex vectors, representing the “third” vertex of a triangle. For example,
{i[m], j[m], k[m]}together represent face m (triangle m) in the mesh, wherek[m] = npoints to the triplet{x[n], y[n], z[n]}in the vertex arrays. Therefore, each element inkrepresents a point in space, which is the third vertex of a triangle.The ‘k’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
ksrc¶ Sets the source reference on Chart Studio Cloud for
k.The ‘ksrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.mesh3d.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
lighting¶ The ‘lighting’ property is an instance of Lighting that may be specified as:
An instance of
plotly.graph_objects.mesh3d.LightingA dict of string/value properties that will be passed to the Lighting constructor
- Returns
- Return type
-
property
lightposition¶ The ‘lightposition’ property is an instance of Lightposition that may be specified as:
An instance of
plotly.graph_objects.mesh3d.LightpositionA dict of string/value properties that will be passed to the Lightposition constructor
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the surface. Please note that in the case of using high
opacityvalues for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not perfectly be sorted in depth by the webgl API. This behavior may be improved in the near future and is subject to change.- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
reversescale¶ Reverses the color mapping if true. If true,
cminwill correspond to the last color in the array andcmaxwill correspond to the first color.- The ‘reversescale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
scene¶ Sets a reference between this trace’s 3D coordinate system and a 3D scene. If “scene” (the default value), the (x,y,z) coordinates refer to
layout.scene. If “scene2”, the (x,y,z) coordinates refer tolayout.scene2, and so on.The ‘scene’ property is an identifier of a particular subplot, of type ‘scene’, that may be specified as:
the string ‘scene’ optionally followed by an integer >= 1 (e.g. ‘scene’, ‘scene1’, ‘scene2’, ‘scene3’, etc.)
- Returns
- Return type
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
showscale¶ Determines whether or not a colorbar is displayed for this trace.
- The ‘showscale’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.mesh3d.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets the text elements associated with the vertices. If trace
hoverinfocontains a “text” flag and “hovertext” is not set, these elements will be seen in the hover labels.- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
vertexcolor¶ Sets the color of each vertex Overrides “color”. While Red, green and blue colors are in the range of 0 and 255; in the case of having vertex color data in RGBA format, the alpha color should be normalized to be between 0 and 1.
The ‘vertexcolor’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
vertexcolorsrc¶ Sets the source reference on Chart Studio Cloud for
vertexcolor.The ‘vertexcolorsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
x¶ Sets the X coordinates of the vertices. The nth element of vectors
x,yandzjointly represent the X, Y and Z coordinates of the nth vertex.The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
xcalendar¶ Sets the calendar system to use with
xdate data.- The ‘xcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
y¶ Sets the Y coordinates of the vertices. The nth element of vectors
x,yandzjointly represent the X, Y and Z coordinates of the nth vertex.The ‘y’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
ycalendar¶ Sets the calendar system to use with
ydate data.- The ‘ycalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
ysrc¶ Sets the source reference on Chart Studio Cloud for
y.The ‘ysrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
z¶ Sets the Z coordinates of the vertices. The nth element of vectors
x,yandzjointly represent the X, Y and Z coordinates of the nth vertex.The ‘z’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
zcalendar¶ Sets the calendar system to use with
zdate data.- The ‘zcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
zhoverformat¶ Sets the hover text formatting rulefor
zusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingzaxis.hoverformat.- The ‘zhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Ohlc(arg=None, close=None, closesrc=None, customdata=None, customdatasrc=None, decreasing=None, high=None, highsrc=None, hoverinfo=None, hoverinfosrc=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertemplatesrc=None, hovertext=None, hovertextsrc=None, ids=None, idssrc=None, increasing=None, legend=None, legendgroup=None, legendgrouptitle=None, legendrank=None, legendwidth=None, line=None, low=None, lowsrc=None, meta=None, metasrc=None, name=None, opacity=None, open=None, opensrc=None, selectedpoints=None, showlegend=None, stream=None, text=None, textsrc=None, tickwidth=None, uid=None, uirevision=None, visible=None, x=None, xaxis=None, xcalendar=None, xhoverformat=None, xperiod=None, xperiod0=None, xperiodalignment=None, xsrc=None, yaxis=None, yhoverformat=None, zorder=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
close¶ Sets the close values.
The ‘close’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
closesrc¶ Sets the source reference on Chart Studio Cloud for
close.The ‘closesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
customdata¶ Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
customdatasrc¶ Sets the source reference on Chart Studio Cloud for
customdata.The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
decreasing¶ The ‘decreasing’ property is an instance of Decreasing that may be specified as:
An instance of
plotly.graph_objects.ohlc.DecreasingA dict of string/value properties that will be passed to the Decreasing constructor
- Returns
- Return type
-
property
high¶ Sets the high values.
The ‘high’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
highsrc¶ Sets the source reference on Chart Studio Cloud for
high.The ‘highsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverinfo¶ Determines which trace information appear on hover. If
noneorskipare set, no information is displayed upon hovering. But, ifnoneis set, click and hover events are still fired.The ‘hoverinfo’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’, ‘z’, ‘text’, ‘name’] joined with ‘+’ characters (e.g. ‘x+y’) OR exactly one of [‘all’, ‘none’, ‘skip’] (e.g. ‘skip’)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
hoverinfosrc¶ Sets the source reference on Chart Studio Cloud for
hoverinfo.The ‘hoverinfosrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hoverlabel¶ The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:
An instance of
plotly.graph_objects.ohlc.HoverlabelA dict of string/value properties that will be passed to the Hoverlabel constructor
- Returns
- Return type
-
property
hovertemplate¶ Template string used for rendering the information that appear on hover box. Note that this will override
hoverinfo. Variables are inserted using %{variable}, for example “y: %{y}” as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, “xother” will be added to those with different x positions from the first point. An underscore before or after “(x|y)other” will add a space on that side, only when this field is shown. Numbers are formatted using d3-format’s syntax %{variable:d3-format}, for example “Price: %{y:$.2f}”. https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format’s syntax %{variable|d3-time-format}, for example “Day: %{2019-01-01|%A}”. https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format for details on the date formatting syntax. Variables that can’t be found will be replaced with the specifier. For example, a template of “data: %{x}, %{y}” will result in a value of “data: 1, %{y}” if x is 1 and y is missing. Variables with an undefined value will be replaced with the fallback value. The variables available inhovertemplateare the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event- data. Additionally, all attributes that can be specified per- point (the ones that arearrayOk: true) are available. Finally, the template string has access to variablesopen,high,lowandclose. Anything contained in tag<extra>is displayed in the secondary box, for example<extra>%{fullData.name}</extra>. To hide the secondary box completely, use an empty tag<extra></extra>.- The ‘hovertemplate’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertemplatefallback¶ Fallback string that’s displayed when a variable referenced in a template is missing. If the boolean value ‘false’ is passed in, the specifier with the missing variable will be displayed.
The ‘hovertemplatefallback’ property accepts values of any type
- Returns
- Return type
Any
-
property
hovertemplatesrc¶ Sets the source reference on Chart Studio Cloud for
hovertemplate.The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
hovertext¶ Same as
text.- The ‘hovertext’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
hovertextsrc¶ Sets the source reference on Chart Studio Cloud for
hovertext.The ‘hovertextsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
ids¶ Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
The ‘ids’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
idssrc¶ Sets the source reference on Chart Studio Cloud for
ids.The ‘idssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
increasing¶ The ‘increasing’ property is an instance of Increasing that may be specified as:
An instance of
plotly.graph_objects.ohlc.IncreasingA dict of string/value properties that will be passed to the Increasing constructor
- Returns
- Return type
-
property
legend¶ Sets the reference to a legend to show this trace in. References to these legends are “legend”, “legend2”, “legend3”, etc. Settings for these legends are set in the layout, under
layout.legend,layout.legend2, etc.The ‘legend’ property is an identifier of a particular subplot, of type ‘legend’, that may be specified as:
the string ‘legend’ optionally followed by an integer >= 1 (e.g. ‘legend’, ‘legend1’, ‘legend2’, ‘legend3’, etc.)
- Returns
- Return type
-
property
legendgroup¶ Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items.
- The ‘legendgroup’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
legendgrouptitle¶ The ‘legendgrouptitle’ property is an instance of Legendgrouptitle that may be specified as:
An instance of
plotly.graph_objects.ohlc.LegendgrouptitleA dict of string/value properties that will be passed to the Legendgrouptitle constructor
- Returns
- Return type
-
property
legendrank¶ Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with “reversed”
legend.traceorderthey are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items. When having unranked or equal rank items shapes would be displayed after traces i.e. according to their order in data and layout.- The ‘legendrank’ property is a number and may be specified as:
An int or float
- Returns
- Return type
int|float
-
property
legendwidth¶ Sets the width (in px or fraction) of the legend for this trace.
- The ‘legendwidth’ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
line¶ The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.ohlc.LineA dict of string/value properties that will be passed to the Line constructor
- Returns
- Return type
-
property
low¶ Sets the low values.
The ‘low’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
lowsrc¶ Sets the source reference on Chart Studio Cloud for
low.The ‘lowsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
meta¶ Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace
name, graph, axis and colorbartitle.text, annotationtextrangeselector,updatemenuesandsliderslabeltext all supportmeta. To access the tracemetavalues in an attribute in the same trace, simply use%{meta[i]}whereiis the index or key of themetaitem in question. To access tracemetain layout attributes, use%{data[n[.meta[i]}whereiis the index or key of themetaandnis the trace index.The ‘meta’ property accepts values of any type
- Returns
- Return type
Any|numpy.ndarray
-
property
metasrc¶ Sets the source reference on Chart Studio Cloud for
meta.The ‘metasrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
name¶ Sets the trace name. The trace name appears as the legend item and on hover.
- The ‘name’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the trace.
- The ‘opacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
open¶ Sets the open values.
The ‘open’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
opensrc¶ Sets the source reference on Chart Studio Cloud for
open.The ‘opensrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
selectedpoints¶ Array containing integer indices of selected points. Has an effect only for traces that support selections. Note that an empty array means an empty selection where the
unselectedare turned on for all points, whereas, any other non-array values means no selection all where theselectedandunselectedstyles have no effect.The ‘selectedpoints’ property accepts values of any type
- Returns
- Return type
Any
-
property
showlegend¶ Determines whether or not an item corresponding to this trace is shown in the legend.
- The ‘showlegend’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
stream¶ The ‘stream’ property is an instance of Stream that may be specified as:
An instance of
plotly.graph_objects.ohlc.StreamA dict of string/value properties that will be passed to the Stream constructor
- Returns
- Return type
-
property
text¶ Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace’s sample points.
- The ‘text’ property is a string and must be specified as:
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
textsrc¶ Sets the source reference on Chart Studio Cloud for
text.The ‘textsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
tickwidth¶ Sets the width of the open/close tick marks relative to the “x” minimal interval.
- The ‘tickwidth’ property is a number and may be specified as:
An int or float in the interval [0, 0.5]
- Returns
- Return type
int|float
-
property
type¶
-
property
uid¶ Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
- The ‘uid’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
uirevision¶ Controls persistence of some user-driven changes to the trace:
constraintrangeinparcoordstraces, as well as someeditable: truemodifications such asnameandcolorbar.title. Defaults tolayout.uirevision. Note that other user-driven trace attribute changes are controlled bylayoutattributes:trace.visibleis controlled bylayout.legend.uirevision,selectedpointsis controlled bylayout.selectionrevision, andcolorbar.(x|y)(accessible withconfig: {editable: true}) is controlled bylayout.editrevision. Trace changes are tracked byuid, which only falls back on trace index if nouidis provided. So if your app can add/remove traces before the end of thedataarray, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace auidthat stays with it as it moves.The ‘uirevision’ property accepts values of any type
- Returns
- Return type
Any
-
property
visible¶ 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).
- The ‘visible’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[True, False, ‘legendonly’]
- Returns
- Return type
Any
-
property
x¶ Sets the x coordinates. If absent, linear coordinate will be generated.
The ‘x’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
xaxis¶ Sets a reference between this trace’s x coordinates and a 2D cartesian x axis. If “x” (the default value), the x coordinates refer to
layout.xaxis. If “x2”, the x coordinates refer tolayout.xaxis2, and so on.The ‘xaxis’ property is an identifier of a particular subplot, of type ‘x’, that may be specified as:
the string ‘x’ optionally followed by an integer >= 1 (e.g. ‘x’, ‘x1’, ‘x2’, ‘x3’, etc.)
- Returns
- Return type
-
property
xcalendar¶ Sets the calendar system to use with
xdate data.- The ‘xcalendar’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘chinese’, ‘coptic’, ‘discworld’, ‘ethiopian’, ‘gregorian’, ‘hebrew’, ‘islamic’, ‘jalali’, ‘julian’, ‘mayan’, ‘nanakshahi’, ‘nepali’, ‘persian’, ‘taiwan’, ‘thai’, ‘ummalqura’]
- Returns
- Return type
Any
-
property
xhoverformat¶ Sets the hover text formatting rulefor
xusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingxaxis.hoverformat.- The ‘xhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
xperiod¶ Only relevant when the axis
typeis “date”. Sets the period positioning in milliseconds or “M<n>” on the x axis. Special values in the form of “M<n>” could be used to declare the number of months. In this casenmust be a positive integer.The ‘xperiod’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiod0¶ Only relevant when the axis
typeis “date”. Sets the base for period positioning in milliseconds or date string on the x0 axis. Whenx0periodis round number of weeks, thex0period0by default would be on a Sunday i.e. 2000-01-02, otherwise it would be at 2000-01-01.The ‘xperiod0’ property accepts values of any type
- Returns
- Return type
Any
-
property
xperiodalignment¶ Only relevant when the axis
typeis “date”. Sets the alignment of data points on the x axis.- The ‘xperiodalignment’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘start’, ‘middle’, ‘end’]
- Returns
- Return type
Any
-
property
xsrc¶ Sets the source reference on Chart Studio Cloud for
x.The ‘xsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
yaxis¶ Sets a reference between this trace’s y coordinates and a 2D cartesian y axis. If “y” (the default value), the y coordinates refer to
layout.yaxis. If “y2”, the y coordinates refer tolayout.yaxis2, and so on.The ‘yaxis’ property is an identifier of a particular subplot, of type ‘y’, that may be specified as:
the string ‘y’ optionally followed by an integer >= 1 (e.g. ‘y’, ‘y1’, ‘y2’, ‘y3’, etc.)
- Returns
- Return type
-
property
yhoverformat¶ Sets the hover text formatting rulefor
yusing d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time- format/tree/v2.2.3#locale_format. We add two items to d3’s date formatter: “%h” for half of the year as a decimal number as well as “%{n}f” for fractional seconds with n digits. For example, 2016-10-13 09:15:23.456 with tickformat “%H~%M~%S.%2f” would display *09~15~23.46*By default the values are formatted usingyaxis.hoverformat.- The ‘yhoverformat’ property is a string and must be specified as:
A string
A number that will be converted to a string
- Returns
- Return type
-
property
zorder¶ Sets the layer on which this trace is displayed, relative to other SVG traces on the same subplot. SVG traces with higher
zorderappear in front of those with lowerzorder.- The ‘zorder’ property is an integer and may be specified as:
An int (or float that will be cast to an int)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.layout.template.data.Parcats(arg=None, arrangement=None, bundlecolors=None, counts=None, countssrc=None, dimensions=None, dimensiondefaults=None, domain=None, hoverinfo=None, hoveron=None, hovertemplate=None, hovertemplatefallback=None, labelfont=None, legendgrouptitle=None, legendwidth=None, line=None, meta=None, metasrc=None, name=None, sortpaths=None, stream=None, tickfont=None, uid=None, uirevision=None, visible=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceType-
property
arrangement¶ Sets the drag interaction mode for categories and dimensions. If
perpendicular, the categories can only move along a line perpendicular to the paths. Iffreeform, the categories can freely move on the plane. Iffixed, the categories and dimensions are stationary.- The ‘arrangement’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘perpendicular’, ‘freeform’, ‘fixed’]
- Returns
- Return type
Any
-
property
bundlecolors¶ Sort paths so that like colors are bundled together within each category.
- The ‘bundlecolors’ property is a boolean and must be specified as:
A boolean value: True or False
- Returns
- Return type
-
property
counts¶ The number of observations represented by each state. Defaults to 1 so that each state represents one observation
- The ‘counts’ property is a number and may be specified as:
An int or float in the interval [0, inf]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
countssrc¶ Sets the source reference on Chart Studio Cloud for
counts.The ‘countssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
dimensiondefaults¶ When used in a template (as layout.template.data.parcats.dimensiondefaults), sets the default property values to use for elements of parcats.dimensions
The ‘dimensiondefaults’ property is an instance of Dimension that may be specified as:
An instance of
plotly.graph_objects.parcats.DimensionA dict of string/value properties that will be passed to the Dimension constructor
- Returns
- Return type
-
property
dimensions¶ The dimensions (variables) of the parallel categories diagram.
The ‘dimensions’ property is a tuple of instances of Dimension that may be specified as:
A list or tuple of instances of plotly.graph_objects.parcats.Dimension
A list or tuple of dicts of string/value properties that will be passed to the Dimension constructor
- Returns
- Return type
-
property
