plotly.graph_objects.Bar¶
-
class
plotly.graph_objects.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)¶ -
__init__(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)¶ Construct a new Bar object
The data visualized by the span of the bars is set in
yiforientationis set to âvâ (the default) and the labels are set inx. By settingorientationto âhâ, the roles are interchanged.- Parameters
arg â dict of properties compatible with this constructor or an instance of
plotly.graph_objects.Baralignmentgroup â 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.
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.
basesrc â Sets the source reference on Chart Studio Cloud for
base.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.constraintext â Constrain the size of text inside or outside a bar to be no larger than the bar itself.
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
customdatasrc â Sets the source reference on Chart Studio Cloud for
customdata.dx â Sets the x coordinate step. See
x0for more info.dy â Sets the y coordinate step. See
y0for more info.error_x â
plotly.graph_objects.bar.ErrorXinstance or dict with compatible propertieserror_y â
plotly.graph_objects.bar.ErrorYinstance or dict with compatible propertieshoverinfo â 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.hoverinfosrc â Sets the source reference on Chart Studio Cloud for
hoverinfo.hoverlabel â
plotly.graph_objects.bar.Hoverlabelinstance or dict with compatible propertieshovertemplate â 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>.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.
hovertemplatesrc â Sets the source reference on Chart Studio Cloud for
hovertemplate.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.hovertextsrc â Sets the source reference on Chart Studio Cloud for
hovertext.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.
idssrc â Sets the source reference on Chart Studio Cloud for
ids.insidetextanchor â Determines if texts are kept at center or start/end points in
textpositionâinsideâ mode.insidetextfont â Sets the font used for
textlying inside the bar.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.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.
legendgrouptitle â
plotly.graph_objects.bar.Legendgrouptitleinstance or dict with compatible propertieslegendrank â 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.legendwidth â Sets the width (in px or fraction) of the legend for this trace.
marker â
plotly.graph_objects.bar.Markerinstance or dict with compatible propertiesmeta â 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.metasrc â Sets the source reference on Chart Studio Cloud for
meta.name â Sets the trace name. The trace name appears as the legend item and on hover.
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.
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.
offsetsrc â Sets the source reference on Chart Studio Cloud for
offset.opacity â Sets the opacity of the trace.
orientation â Sets the orientation of the bars. With âvâ (âhâ), the value of the each bar spans along the vertical (horizontal).
outsidetextfont â Sets the font used for
textlying outside the bar.selected â
plotly.graph_objects.bar.Selectedinstance or dict with compatible propertiesselectedpoints â 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.showlegend â Determines whether or not an item corresponding to this trace is shown in the legend.
stream â
plotly.graph_objects.bar.Streaminstance or dict with compatible propertiestext â 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.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.textfont â Sets the font used for
text.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.textpositionsrc â Sets the source reference on Chart Studio Cloud for
textposition.textsrc â Sets the source reference on Chart Studio Cloud for
text.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.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.
texttemplatesrc â Sets the source reference on Chart Studio Cloud for
texttemplate.uid â Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
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.unselected â
plotly.graph_objects.bar.Unselectedinstance or dict with compatible propertiesvisible â 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).
width â Sets the bar width (in position axis units).
widthsrc â Sets the source reference on Chart Studio Cloud for
width.x â Sets the x coordinates.
x0 â Alternate to
x. Builds a linear space of x coordinates. Use withdxwherex0is the starting coordinate anddxthe step.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.xcalendar â Sets the calendar system to use with
xdate data.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.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.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.xperiodalignment â Only relevant when the axis
typeis âdateâ. Sets the alignment of data points on the x axis.xsrc â Sets the source reference on Chart Studio Cloud for
x.y â Sets the y coordinates.
y0 â Alternate to
y. Builds a linear space of y coordinates. Use withdywherey0is the starting coordinate anddythe step.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.ycalendar â Sets the calendar system to use with
ydate data.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.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.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.yperiodalignment â Only relevant when the axis
typeis âdateâ. Sets the alignment of data points on the y axis.ysrc â Sets the source reference on Chart Studio Cloud for
y.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.
- Returns
- Return type
-
plotly.graph_objects.bar¶
-
class
plotly.graph_objects.bar.ErrorX(arg=None, array=None, arrayminus=None, arrayminussrc=None, arraysrc=None, color=None, copy_ystyle=None, symmetric=None, thickness=None, traceref=None, tracerefminus=None, type=None, value=None, valueminus=None, visible=None, width=None, **kwargs)¶ -
property
array¶ Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data.
The âarrayâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
arrayminus¶ Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data.
The âarrayminusâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
arrayminussrc¶ Sets the source reference on Chart Studio Cloud for
arrayminus.The âarrayminussrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
arraysrc¶ Sets the source reference on Chart Studio Cloud for
array.The âarraysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
color¶ Sets the stroke color of the error bars.
- 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
copy_ystyle¶ The âcopy_ystyleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
symmetric¶ Determines whether or not the error bars have the same length in both direction (top/bottom for vertical bars, left/right for horizontal bars.
The âsymmetricâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
thickness¶ Sets the thickness (in px) of the error bars.
- The âthicknessâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
traceref¶ - The âtracerefâ property is a 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
tracerefminus¶ - The âtracerefminusâ property is a 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
type¶ Determines the rule used to generate the error bars. If âconstantâ, the bar lengths are of a constant value. Set this constant in
value. If âpercentâ, the bar lengths correspond to a percentage of underlying data. Set this percentage invalue. If âsqrtâ, the bar lengths correspond to the square of the underlying data. If âdataâ, the bar lengths are set with data setarray.- The âtypeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpercentâ, âconstantâ, âsqrtâ, âdataâ]
- Returns
- Return type
Any
-
property
value¶ Sets the value of either the percentage (if
typeis set to âpercentâ) or the constant (iftypeis set to âconstantâ) corresponding to the lengths of the error bars.- The âvalueâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
valueminus¶ Sets the value of either the percentage (if
typeis set to âpercentâ) or the constant (iftypeis set to âconstantâ) corresponding to the lengths of the error bars in the bottom (left) direction for vertical (horizontal) bars- The âvalueminusâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
visible¶ Determines whether or not this set of error bars is visible.
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
width¶ Sets the width (in px) of the cross-bar at both ends of the error bars.
- 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
-
class
plotly.graph_objects.bar.ErrorY(arg=None, array=None, arrayminus=None, arrayminussrc=None, arraysrc=None, color=None, symmetric=None, thickness=None, traceref=None, tracerefminus=None, type=None, value=None, valueminus=None, visible=None, width=None, **kwargs)¶ -
property
array¶ Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data.
The âarrayâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
arrayminus¶ Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data.
The âarrayminusâ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
- Returns
- Return type
numpy.ndarray
-
property
arrayminussrc¶ Sets the source reference on Chart Studio Cloud for
arrayminus.The âarrayminussrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
arraysrc¶ Sets the source reference on Chart Studio Cloud for
array.The âarraysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
color¶ Sets the stroke color of the error bars.
- 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
symmetric¶ Determines whether or not the error bars have the same length in both direction (top/bottom for vertical bars, left/right for horizontal bars.
The âsymmetricâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
thickness¶ Sets the thickness (in px) of the error bars.
- The âthicknessâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
traceref¶ - The âtracerefâ property is a 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
tracerefminus¶ - The âtracerefminusâ property is a 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
type¶ Determines the rule used to generate the error bars. If âconstantâ, the bar lengths are of a constant value. Set this constant in
value. If âpercentâ, the bar lengths correspond to a percentage of underlying data. Set this percentage invalue. If âsqrtâ, the bar lengths correspond to the square of the underlying data. If âdataâ, the bar lengths are set with data setarray.- The âtypeâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âpercentâ, âconstantâ, âsqrtâ, âdataâ]
- Returns
- Return type
Any
-
property
value¶ Sets the value of either the percentage (if
typeis set to âpercentâ) or the constant (iftypeis set to âconstantâ) corresponding to the lengths of the error bars.- The âvalueâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
valueminus¶ Sets the value of either the percentage (if
typeis set to âpercentâ) or the constant (iftypeis set to âconstantâ) corresponding to the lengths of the error bars in the bottom (left) direction for vertical (horizontal) bars- The âvalueminusâ property is a number and may be specified as:
An int or float in the interval [0, inf]
- Returns
- Return type
int|float
-
property
visible¶ Determines whether or not this set of error bars is visible.
The âvisibleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
width¶ Sets the width (in px) of the cross-bar at both ends of the error bars.
- 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
-
class
plotly.graph_objects.bar.Hoverlabel(arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, showarrow=None, **kwargs)¶ -
property
align¶ Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines
- The âalignâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[âleftâ, ârightâ, âautoâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
alignsrc¶ Sets the source reference on Chart Studio Cloud for
align.The âalignsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
bgcolor¶ Sets the background color of the hover labels for this trace
- The âbgcolorâ 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 list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
bgcolorsrc¶ Sets the source reference on Chart Studio Cloud for
bgcolor.The âbgcolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
bordercolor¶ Sets the border color of the hover labels for this trace.
- The âbordercolorâ 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 list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
bordercolorsrc¶ Sets the source reference on Chart Studio Cloud for
bordercolor.The âbordercolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
font¶ Sets the font used in hover labels.
The âfontâ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.bar.hoverlabel.FontA dict of string/value properties that will be passed to the Font constructor
- Returns
- Return type
-
property
namelength¶ Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to
namelength - 3characters and add an ellipsis.- The ânamelengthâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [-1, 9223372036854775807]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|numpy.ndarray
-
property
namelengthsrc¶ Sets the source reference on Chart Studio Cloud for
namelength.The ânamelengthsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
-
class
plotly.graph_objects.bar.Insidetextfont(arg=None, color=None, colorsrc=None, family=None, familysrc=None, lineposition=None, linepositionsrc=None, shadow=None, shadowsrc=None, size=None, sizesrc=None, style=None, stylesrc=None, textcase=None, textcasesrc=None, variant=None, variantsrc=None, weight=None, weightsrc=None, **kwargs)¶ -
property
color¶ - 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 list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
colorsrc¶ Sets the source reference on Chart Studio Cloud for
color.The âcolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
family¶ HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they arenât available.
- The âfamilyâ property is a string and must be specified as:
A non-empty string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
familysrc¶ Sets the source reference on Chart Studio Cloud for
family.The âfamilysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
lineposition¶ Sets the kind of decoration line(s) with text, such as an âunderâ, âoverâ or âthroughâ as well as combinations e.g. âunder+overâ, etc.
The âlinepositionâ property is a flaglist and may be specified as a string containing:
Any combination of [âunderâ, âoverâ, âthroughâ] joined with â+â characters (e.g. âunder+overâ) OR exactly one of [ânoneâ] (e.g. ânoneâ)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
linepositionsrc¶ Sets the source reference on Chart Studio Cloud for
lineposition.The âlinepositionsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
shadow¶ Sets the shape and color of the shadow behind text. âautoâ places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
- The âshadowâ 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
shadowsrc¶ Sets the source reference on Chart Studio Cloud for
shadow.The âshadowsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
size¶ - The âsizeâ 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
sizesrc¶ Sets the source reference on Chart Studio Cloud for
size.The âsizesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
style¶ Sets whether a font should be styled with a normal or italic face from its family.
- The âstyleâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âitalicâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
stylesrc¶ Sets the source reference on Chart Studio Cloud for
style.The âstylesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
textcase¶ Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- The âtextcaseâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âword capsâ, âupperâ, âlowerâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
textcasesrc¶ Sets the source reference on Chart Studio Cloud for
textcase.The âtextcasesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
variant¶ Sets the variant of the font.
- The âvariantâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âsmall-capsâ, âall-small-capsâ, âall-petite-capsâ, âpetite-capsâ, âunicaseâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
variantsrc¶ Sets the source reference on Chart Studio Cloud for
variant.The âvariantsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
weight¶ Sets the weight (or boldness) of the font.
- The âweightâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 1000] OR exactly one of [ânormalâ, âboldâ] (e.g. âboldâ)
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|numpy.ndarray
-
property
-
class
plotly.graph_objects.bar.Legendgrouptitle(arg=None, font=None, text=None, **kwargs)¶ -
property
font¶ Sets this legend groupâs title font.
The âfontâ property is an instance of Font that may be specified as:
An instance of
plotly.graph_objects.bar.legendgrouptitle.FontA dict of string/value properties that will be passed to the Font constructor
- Returns
- Return type
-
property
-
class
plotly.graph_objects.bar.Marker(arg=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, color=None, coloraxis=None, colorbar=None, colorscale=None, colorsrc=None, cornerradius=None, line=None, opacity=None, opacitysrc=None, pattern=None, reversescale=None, showscale=None, **kwargs)¶ -
property
autocolorscale¶ Determines whether the colorscale is a default palette (
autocolorscale: true) or the palette determined bymarker.colorscale. Has an effect only if inmarker.coloris set to a numerical array. 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 must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
cauto¶ Determines whether or not the color domain is computed with respect to the input data (here in
marker.color) or the bounds set inmarker.cminandmarker.cmaxHas an effect only if inmarker.coloris set to a numerical array. Defaults tofalsewhenmarker.cminandmarker.cmaxare set by the user.The âcautoâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
cmax¶ Sets the upper bound of the color domain. Has an effect only if in
marker.coloris set to a numerical array. Value should have the same units as inmarker.colorand if set,marker.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
marker.cminand/ormarker.cmaxto be equidistant to this point. Has an effect only if inmarker.coloris set to a numerical array. Value should have the same units as inmarker.color. Has no effect whenmarker.cautoisfalse.- 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. Has an effect only if in
marker.coloris set to a numerical array. Value should have the same units as inmarker.colorand if set,marker.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 marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to
marker.cminandmarker.cmaxif set.- 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 bar.marker.colorscale
A list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
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.bar.marker.ColorBarA dict of string/value properties that will be passed to the ColorBar constructor
- Returns
- Return type
-
property
colorscale¶ Sets the colorscale. Has an effect only if in
marker.coloris set to a numerical array. 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, usemarker.cminandmarker.cmax. Alternatively,colorscalemay be a palette name string of the following list: Blackbody,B luered,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
colorsrc¶ Sets the source reference on Chart Studio Cloud for
color.The âcolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
cornerradius¶ Sets the rounding of corners. May be an integer number of pixels, or a percentage of bar width (as a string ending in %). Defaults to
layout.barcornerradius. In stack or relative barmode, the first trace to set cornerradius is used for the whole stack.The âcornerradiusâ property accepts values of any type
- Returns
- Return type
Any
-
property
line¶ The âlineâ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.bar.marker.LineA dict of string/value properties that will be passed to the Line constructor
- Returns
- Return type
-
property
opacity¶ Sets the opacity of the bars.
- The âopacityâ property is a number and may be specified as:
An int or float in the interval [0, 1]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|float|numpy.ndarray
-
property
opacitysrc¶ Sets the source reference on Chart Studio Cloud for
opacity.The âopacitysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
pattern¶ Sets the pattern within the marker.
The âpatternâ property is an instance of Pattern that may be specified as:
An instance of
plotly.graph_objects.bar.marker.PatternA dict of string/value properties that will be passed to the Pattern constructor
- Returns
- Return type
-
property
reversescale¶ Reverses the color mapping if true. Has an effect only if in
marker.coloris set to a numerical array. If true,marker.cminwill correspond to the last color in the array andmarker.cmaxwill correspond to the first color.The âreversescaleâ property must be specified as a bool (either True, or False)
- Returns
- Return type
-
property
-
class
plotly.graph_objects.bar.Outsidetextfont(arg=None, color=None, colorsrc=None, family=None, familysrc=None, lineposition=None, linepositionsrc=None, shadow=None, shadowsrc=None, size=None, sizesrc=None, style=None, stylesrc=None, textcase=None, textcasesrc=None, variant=None, variantsrc=None, weight=None, weightsrc=None, **kwargs)¶ -
property
color¶ - 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 list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
colorsrc¶ Sets the source reference on Chart Studio Cloud for
color.The âcolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
family¶ HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they arenât available.
- The âfamilyâ property is a string and must be specified as:
A non-empty string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
familysrc¶ Sets the source reference on Chart Studio Cloud for
family.The âfamilysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
lineposition¶ Sets the kind of decoration line(s) with text, such as an âunderâ, âoverâ or âthroughâ as well as combinations e.g. âunder+overâ, etc.
The âlinepositionâ property is a flaglist and may be specified as a string containing:
Any combination of [âunderâ, âoverâ, âthroughâ] joined with â+â characters (e.g. âunder+overâ) OR exactly one of [ânoneâ] (e.g. ânoneâ)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
linepositionsrc¶ Sets the source reference on Chart Studio Cloud for
lineposition.The âlinepositionsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
shadow¶ Sets the shape and color of the shadow behind text. âautoâ places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
- The âshadowâ 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
shadowsrc¶ Sets the source reference on Chart Studio Cloud for
shadow.The âshadowsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
size¶ - The âsizeâ 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
sizesrc¶ Sets the source reference on Chart Studio Cloud for
size.The âsizesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
style¶ Sets whether a font should be styled with a normal or italic face from its family.
- The âstyleâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âitalicâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
stylesrc¶ Sets the source reference on Chart Studio Cloud for
style.The âstylesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
textcase¶ Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- The âtextcaseâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âword capsâ, âupperâ, âlowerâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
textcasesrc¶ Sets the source reference on Chart Studio Cloud for
textcase.The âtextcasesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
variant¶ Sets the variant of the font.
- The âvariantâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âsmall-capsâ, âall-small-capsâ, âall-petite-capsâ, âpetite-capsâ, âunicaseâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
variantsrc¶ Sets the source reference on Chart Studio Cloud for
variant.The âvariantsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
weight¶ Sets the weight (or boldness) of the font.
- The âweightâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 1000] OR exactly one of [ânormalâ, âboldâ] (e.g. âboldâ)
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|numpy.ndarray
-
property
-
class
plotly.graph_objects.bar.Selected(arg=None, marker=None, textfont=None, **kwargs)¶ -
property
marker¶ The âmarkerâ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.bar.selected.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
textfont¶ The âtextfontâ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.bar.selected.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
-
class
plotly.graph_objects.bar.Stream(arg=None, maxpoints=None, token=None, **kwargs)¶ -
property
maxpoints¶ Sets the maximum number of points to keep on the plots from an incoming stream. If
maxpointsis set to 50, only the newest 50 points will be displayed on the plot.- The âmaxpointsâ property is a number and may be specified as:
An int or float in the interval [0, 10000]
- Returns
- Return type
int|float
-
property
token¶ The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details.
- The âtokenâ property is a string and must be specified as:
A non-empty string
- Returns
- Return type
-
property
-
class
plotly.graph_objects.bar.Textfont(arg=None, color=None, colorsrc=None, family=None, familysrc=None, lineposition=None, linepositionsrc=None, shadow=None, shadowsrc=None, size=None, sizesrc=None, style=None, stylesrc=None, textcase=None, textcasesrc=None, variant=None, variantsrc=None, weight=None, weightsrc=None, **kwargs)¶ -
property
color¶ - 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 list or array of any of the above
- Returns
- Return type
str|numpy.ndarray
-
property
colorsrc¶ Sets the source reference on Chart Studio Cloud for
color.The âcolorsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
family¶ HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they arenât available.
- The âfamilyâ property is a string and must be specified as:
A non-empty string
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
str|numpy.ndarray
-
property
familysrc¶ Sets the source reference on Chart Studio Cloud for
family.The âfamilysrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
lineposition¶ Sets the kind of decoration line(s) with text, such as an âunderâ, âoverâ or âthroughâ as well as combinations e.g. âunder+overâ, etc.
The âlinepositionâ property is a flaglist and may be specified as a string containing:
Any combination of [âunderâ, âoverâ, âthroughâ] joined with â+â characters (e.g. âunder+overâ) OR exactly one of [ânoneâ] (e.g. ânoneâ)
A list or array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
linepositionsrc¶ Sets the source reference on Chart Studio Cloud for
lineposition.The âlinepositionsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
shadow¶ Sets the shape and color of the shadow behind text. âautoâ places minimal shadow and applies contrast text font color. See https://developer.mozilla.org/en-US/docs/Web/CSS/text-shadow for additional options.
- The âshadowâ 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
shadowsrc¶ Sets the source reference on Chart Studio Cloud for
shadow.The âshadowsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
size¶ - The âsizeâ 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
sizesrc¶ Sets the source reference on Chart Studio Cloud for
size.The âsizesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
style¶ Sets whether a font should be styled with a normal or italic face from its family.
- The âstyleâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âitalicâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
stylesrc¶ Sets the source reference on Chart Studio Cloud for
style.The âstylesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
textcase¶ Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
- The âtextcaseâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âword capsâ, âupperâ, âlowerâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
textcasesrc¶ Sets the source reference on Chart Studio Cloud for
textcase.The âtextcasesrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
variant¶ Sets the variant of the font.
- The âvariantâ property is an enumeration that may be specified as:
- One of the following enumeration values:
[ânormalâ, âsmall-capsâ, âall-small-capsâ, âall-petite-capsâ, âpetite-capsâ, âunicaseâ]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
variantsrc¶ Sets the source reference on Chart Studio Cloud for
variant.The âvariantsrcâ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
weight¶ Sets the weight (or boldness) of the font.
- The âweightâ property is a integer and may be specified as:
An int (or float that will be cast to an int) in the interval [1, 1000] OR exactly one of [ânormalâ, âboldâ] (e.g. âboldâ)
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
int|numpy.ndarray
-
property
-
class
plotly.graph_objects.bar.Unselected(arg=None, marker=None, textfont=None, **kwargs)¶ -
property
marker¶ The âmarkerâ property is an instance of Marker that may be specified as:
An instance of
plotly.graph_objects.bar.unselected.MarkerA dict of string/value properties that will be passed to the Marker constructor
- Returns
- Return type
-
property
textfont¶ The âtextfontâ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.bar.unselected.TextfontA dict of string/value properties that will be passed to the Textfont constructor
- Returns
- Return type
-
property
