plotly.graph_objects.treemap.
Domain
(arg=None, column=None, row=None, x=None, y=None, **kwargs)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
column
¶If there is a layout grid, use the domain for this column in the grid for this treemap trace .
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
row
¶If there is a layout grid, use the domain for this row in the grid for this treemap trace .
An int (or float that will be cast to an int) in the interval [0, 9223372036854775807]
x
¶fraction).
The ‘x’ property is an info array that may be specified as:
a list or tuple of 2 elements where:
An int or float in the interval [0, 1]
An int or float in the interval [0, 1]
list
y
¶fraction).
The ‘y’ property is an info array that may be specified as:
a list or tuple of 2 elements where:
An int or float in the interval [0, 1]
An int or float in the interval [0, 1]
list
plotly.graph_objects.treemap.
Hoverlabel
(arg=None, align=None, alignsrc=None, bgcolor=None, bgcolorsrc=None, bordercolor=None, bordercolorsrc=None, font=None, namelength=None, namelengthsrc=None, **kwargs)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
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
[‘left’, ‘right’, ‘auto’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
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
bgcolor
¶Sets the background color of the hover labels for this trace
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
str|numpy.ndarray
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
bordercolor
¶Sets the border color of the hover labels for this trace.
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
str|numpy.ndarray
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
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.treemap.hoverlabel.Font
A dict of string/value properties that will be passed to the Font constructor
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 - 3
characters and add an ellipsis.
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
int|numpy.ndarray
plotly.graph_objects.treemap.
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)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
color
¶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
str|numpy.ndarray
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
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.
A non-empty string
A tuple, list, or one-dimensional numpy array of the above
str|numpy.ndarray
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
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
Any|numpy.ndarray
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
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.
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
str|numpy.ndarray
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
size
¶An int or float in the interval [1, inf]
A tuple, list, or one-dimensional numpy array of the above
int|float|numpy.ndarray
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
style
¶Sets whether a font should be styled with a normal or italic face from its family.
[‘normal’, ‘italic’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
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
textcase
¶Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
[‘normal’, ‘word caps’, ‘upper’, ‘lower’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
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
variant
¶Sets the variant of the font.
[‘normal’, ‘small-caps’, ‘all-small-caps’, ‘all-petite-caps’, ‘petite-caps’, ‘unicase’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
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
weight
¶Sets the weight (or boldness) of the font.
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
int|numpy.ndarray
plotly.graph_objects.treemap.
Legendgrouptitle
(arg=None, font=None, text=None, **kwargs)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
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.treemap.legendgrouptitle.Font
A dict of string/value properties that will be passed to the Font constructor
plotly.graph_objects.treemap.
Marker
(arg=None, autocolorscale=None, cauto=None, cmax=None, cmid=None, cmin=None, coloraxis=None, colorbar=None, colors=None, colorscale=None, colorssrc=None, cornerradius=None, depthfade=None, line=None, pad=None, pattern=None, reversescale=None, showscale=None, **kwargs)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
autocolorscale
¶Determines whether the colorscale is a default palette
(autocolorscale: true
) or the palette determined by
marker.colorscale
. Has an effect only if colors is set to a
numerical array. In case colorscale
is unspecified or
autocolorscale
is true, the default palette will be chosen
according to whether numbers in the color
array are all
positive, all negative or mixed.
The ‘autocolorscale’ property must be specified as a bool (either True, or False)
cauto
¶Determines whether or not the color domain is computed with
respect to the input data (here colors) or the bounds set in
marker.cmin
and marker.cmax
Has an effect only if colors is
set to a numerical array. Defaults to false
when
marker.cmin
and marker.cmax
are set by the user.
The ‘cauto’ property must be specified as a bool (either True, or False)
cmax
¶Sets the upper bound of the color domain. Has an effect only if
colors is set to a numerical array. Value should have the same
units as colors and if set, marker.cmin
must be set as well.
An int or float
int|float
cmid
¶Sets the mid-point of the color domain by scaling marker.cmin
and/or marker.cmax
to be equidistant to this point. Has an
effect only if colors is set to a numerical array. Value should
have the same units as colors. Has no effect when
marker.cauto
is false
.
An int or float
int|float
cmin
¶Sets the lower bound of the color domain. Has an effect only if
colors is set to a numerical array. Value should have the same
units as colors and if set, marker.cmax
must be set as well.
An int or float
int|float
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.)
colorbar
¶The ‘colorbar’ property is an instance of ColorBar that may be specified as:
An instance of
plotly.graph_objects.treemap.marker.ColorBar
A dict of string/value properties that will be passed to the ColorBar constructor
colors
¶Sets the color of each sector of this trace. If not specified, the default trace color set is used to pick the sector colors.
The ‘colors’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series
numpy.ndarray
colorscale
¶Sets the colorscale. Has an effect only if colors is 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, use marker.cmin
and
marker.cmax
. Alternatively, colorscale
may be a palette
name string of the following list: Blackbody,Bluered,Blues,Civi
dis,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.
colorssrc
¶Sets the source reference on Chart Studio Cloud for colors
.
The ‘colorssrc’ property must be specified as a string or as a plotly.grid_objs.Column object
cornerradius
¶Sets the maximum rounding of corners (in px).
An int or float in the interval [0, inf]
int|float
depthfade
¶Determines if the sector colors are faded towards the
background from the leaves up to the headers. This option is
unavailable when a colorscale
is present, defaults to false
when marker.colors
is set, but otherwise defaults to true.
When set to “reversed”, the fading direction is inverted, that
is the top elements within hierarchy are drawn with fully
saturated colors while the leaves are faded towards the
background color.
[True, False, ‘reversed’]
Any
line
¶The ‘line’ property is an instance of Line that may be specified as:
An instance of
plotly.graph_objects.treemap.marker.Line
A dict of string/value properties that will be passed to the Line constructor
pad
¶The ‘pad’ property is an instance of Pad that may be specified as:
An instance of
plotly.graph_objects.treemap.marker.Pad
A dict of string/value properties that will be passed to the Pad constructor
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.treemap.marker.Pattern
A dict of string/value properties that will be passed to the Pattern constructor
reversescale
¶Reverses the color mapping if true. Has an effect only if
colors is set to a numerical array. If true, marker.cmin
will
correspond to the last color in the array and marker.cmax
will correspond to the first color.
The ‘reversescale’ property must be specified as a bool (either True, or False)
plotly.graph_objects.treemap.
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)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
color
¶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
str|numpy.ndarray
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
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.
A non-empty string
A tuple, list, or one-dimensional numpy array of the above
str|numpy.ndarray
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
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
Any|numpy.ndarray
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
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.
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
str|numpy.ndarray
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
size
¶An int or float in the interval [1, inf]
A tuple, list, or one-dimensional numpy array of the above
int|float|numpy.ndarray
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
style
¶Sets whether a font should be styled with a normal or italic face from its family.
[‘normal’, ‘italic’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
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
textcase
¶Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
[‘normal’, ‘word caps’, ‘upper’, ‘lower’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
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
variant
¶Sets the variant of the font.
[‘normal’, ‘small-caps’, ‘all-small-caps’, ‘all-petite-caps’, ‘petite-caps’, ‘unicase’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
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
weight
¶Sets the weight (or boldness) of the font.
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
int|numpy.ndarray
plotly.graph_objects.treemap.
Pathbar
(arg=None, edgeshape=None, side=None, textfont=None, thickness=None, visible=None, **kwargs)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
edgeshape
¶Determines which shape is used for edges between barpath
labels.
[‘>’, ‘<’, ‘|’, ‘/’, ‘']
Any
side
¶Determines on which side of the the treemap the pathbar
should be presented.
[‘top’, ‘bottom’]
Any
textfont
¶Sets the font used inside pathbar
.
The ‘textfont’ property is an instance of Textfont that may be specified as:
An instance of
plotly.graph_objects.treemap.pathbar.Textfont
A dict of string/value properties that will be passed to the Textfont constructor
thickness
¶Sets the thickness of pathbar
(in px). If not specified the
pathbar.textfont.size
is used with 3 pixles extra padding on
each side.
An int or float in the interval [12, inf]
int|float
plotly.graph_objects.treemap.
Root
(arg=None, color=None, **kwargs)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
color
¶sets the color of the root node for a sunburst/treemap/icicle trace. this has no effect when a colorscale is used to set the markers.
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
plotly.graph_objects.treemap.
Stream
(arg=None, maxpoints=None, token=None, **kwargs)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
maxpoints
¶Sets the maximum number of points to keep on the plots from an
incoming stream. If maxpoints
is set to 50, only the newest
50 points will be displayed on the plot.
An int or float in the interval [0, 10000]
int|float
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.
A non-empty string
plotly.graph_objects.treemap.
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)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
color
¶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
str|numpy.ndarray
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
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.
A non-empty string
A tuple, list, or one-dimensional numpy array of the above
str|numpy.ndarray
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
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
Any|numpy.ndarray
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
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.
A string
A number that will be converted to a string
A tuple, list, or one-dimensional numpy array of the above
str|numpy.ndarray
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
size
¶An int or float in the interval [1, inf]
A tuple, list, or one-dimensional numpy array of the above
int|float|numpy.ndarray
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
style
¶Sets whether a font should be styled with a normal or italic face from its family.
[‘normal’, ‘italic’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
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
textcase
¶Sets capitalization of text. It can be used to make text appear in all-uppercase or all-lowercase, or with each word capitalized.
[‘normal’, ‘word caps’, ‘upper’, ‘lower’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
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
variant
¶Sets the variant of the font.
[‘normal’, ‘small-caps’, ‘all-small-caps’, ‘all-petite-caps’, ‘petite-caps’, ‘unicase’]
A tuple, list, or one-dimensional numpy array of the above
Any|numpy.ndarray
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
weight
¶Sets the weight (or boldness) of the font.
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
int|numpy.ndarray
plotly.graph_objects.treemap.
Tiling
(arg=None, flip=None, packing=None, pad=None, squarifyratio=None, **kwargs)¶Bases: plotly.basedatatypes.BaseTraceHierarchyType
flip
¶Determines if the positions obtained from solver are flipped on each axis.
The ‘flip’ property is a flaglist and may be specified as a string containing:
Any combination of [‘x’, ‘y’] joined with ‘+’ characters (e.g. ‘x+y’)
Any
packing
¶Determines d3 treemap solver. For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling
[‘squarify’, ‘binary’, ‘dice’, ‘slice’, ‘slice-dice’, ‘dice-slice’]
Any
pad
¶Sets the inner padding (in px).
An int or float in the interval [0, inf]
int|float
squarifyratio
¶/ /github.com/d3/d3- hierarchy/blob/v3.1.1/README.md#squarify_ratio this option specifies the desired aspect ratio of the generated rectangles. The ratio must be specified as a number greater than or equal to one. Note that the orientation of the generated rectangles (tall or wide) is not implied by the ratio; for example, a ratio of two will attempt to produce a mixture of rectangles whose width:height ratio is either 2:1 or 1:2. When using “squarify”, unlike d3 which uses the Golden Ratio i.e. 1.618034, Plotly applies 1 to increase squares in treemap layouts.
An int or float in the interval [1, inf]
int|float
When using “squarify” packing
algorithm, according to https