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

str

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

str

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