plotly.graph_objects.pie.marker package¶
-
class
plotly.graph_objects.pie.marker.Line(arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceHierarchyType-
property
color¶ Sets the color of the line enclosing each sector.
- 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
width¶ Sets the width (in px) of the line enclosing each sector.
- 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.pie.marker.Pattern(arg=None, bgcolor=None, bgcolorsrc=None, fgcolor=None, fgcolorsrc=None, fgopacity=None, fillmode=None, path=None, pathsrc=None, shape=None, shapesrc=None, size=None, sizesrc=None, solidity=None, soliditysrc=None, **kwargs)¶ Bases:
plotly.basedatatypes.BaseTraceHierarchyType-
property
bgcolor¶ When there is no colorscale sets the color of background pattern fill. Defaults to a
marker.colorbackground whenfillmodeis “overlay”. Otherwise, defaults to a transparent background.- 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
fgcolor¶ When there is no colorscale sets the color of foreground pattern fill. Defaults to a
marker.colorbackground whenfillmodeis “replace”. Otherwise, defaults to dark grey or white to increase contrast with thebgcolor.- The ‘fgcolor’ 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
fgcolorsrc¶ Sets the source reference on Chart Studio Cloud for
fgcolor.The ‘fgcolorsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
fgopacity¶ Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when
fillmodeis “overlay”. Otherwise, defaults to 1.- The ‘fgopacity’ property is a number and may be specified as:
An int or float in the interval [0, 1]
- Returns
- Return type
int|float
-
property
fillmode¶ Determines whether
marker.colorshould be used as a default tobgcoloror afgcolor.- The ‘fillmode’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘replace’, ‘overlay’]
- Returns
- Return type
Any
-
property
path¶ Sets a custom path for pattern fill. Use with no
shapeorsolidity, provide an SVG path string for the regions of the square from (0,0) to (size,`size`) to color.- The ‘path’ 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
pathsrc¶ Sets the source reference on Chart Studio Cloud for
path.The ‘pathsrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
shape¶ Sets the shape of the pattern fill. By default, no pattern is used for filling the area.
- The ‘shape’ property is an enumeration that may be specified as:
- One of the following enumeration values:
[‘’, ‘/’, ‘', ‘x’, ‘-‘, ‘|’, ‘+’, ‘.’]
A tuple, list, or one-dimensional numpy array of the above
- Returns
- Return type
Any|numpy.ndarray
-
property
shapesrc¶ Sets the source reference on Chart Studio Cloud for
shape.The ‘shapesrc’ property must be specified as a string or as a plotly.grid_objs.Column object
- Returns
- Return type
-
property
size¶ Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern.
- The ‘size’ 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
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
solidity¶ Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern.
- The ‘solidity’ 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
