plotly.graph_objects.layout.newselection packageΒΆ
-
class
plotly.graph_objects.layout.newselection.
Line
(arg=None, color=None, dash=None, width=None, **kwargs)ΒΆ Bases:
plotly.basedatatypes.BaseLayoutHierarchyType
-
property
color
ΒΆ Sets the line color. By default uses either dark grey or white to increase contrast with background 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
- Returns
- Return type
-
property
dash
ΒΆ Sets the dash style of lines. Set to a dash type string (βsolidβ, βdotβ, βdashβ, βlongdashβ, βdashdotβ, or βlongdashdotβ) or a dash length list in px (eg β5px,10px,2px,2pxβ).
- The βdashβ property is an enumeration that may be specified as:
- One of the following dash styles:
[βsolidβ, βdotβ, βdashβ, βlongdashβ, βdashdotβ, βlongdashdotβ]
- A string containing a dash length list in pixels or percentages
(e.g. β5px 10px 2px 2pxβ, β5, 10, 2, 2β, β10% 20% 40%β, etc.)
- Returns
- Return type
-
property
width
ΒΆ Sets the line width (in px).
- The βwidthβ property is a number and may be specified as:
An int or float in the interval [1, inf]
- Returns
- Return type
int|float
-
property