A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://plotly.com/python-api-reference/generated/plotly.graph_objects.sankey.html below:

plotly.graph_objects.sankey package — 6.2.0 documentation

Bases: plotly.basedatatypes.BaseTraceHierarchyType

property arrowlen

Sets the length (in px) of the links arrow, if 0 no arrow will be drawn.

The ‘arrowlen’ property is a number and may be specified as:
  • An int or float in the interval [0, inf]

Returns
Return type

int|float

property color

Sets the link color. It can be a single value, or an array for specifying color for each link. If link.color is omitted, then by default, a translucent grey link will be used.

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 colorscaledefaults

When used in a template (as layout.template.data.sankey.link.colorscaledefaults), sets the default property values to use for elements of sankey.link.colorscales

The ‘colorscaledefaults’ property is an instance of Colorscale that may be specified as:

Returns
Return type

plotly.graph_objects.sankey.link.Colorscale

property colorscales

The ‘colorscales’ property is a tuple of instances of Colorscale that may be specified as:

  • A list or tuple of instances of plotly.graph_objects.sankey.link.Colorscale

  • A list or tuple of dicts of string/value properties that will be passed to the Colorscale constructor

Returns
Return type

tuple[plotly.graph_objects.sankey.link.Colorscale]

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

str

property customdata

Assigns extra data to each link.

The ‘customdata’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series

Returns
Return type

numpy.ndarray

property customdatasrc

Sets the source reference on Chart Studio Cloud for customdata.

The ‘customdatasrc’ property must be specified as a string or as a plotly.grid_objs.Column object

Returns
Return type

str

property hovercolor

Sets the link hover color. It can be a single value, or an array for specifying hover colors for each link. If link.hovercolor is omitted, then by default, links will become slightly more opaque when hovered over.

The ‘hovercolor’ 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 hovercolorsrc

Sets the source reference on Chart Studio Cloud for hovercolor.

The ‘hovercolorsrc’ property must be specified as a string or as a plotly.grid_objs.Column object

Returns
Return type

str

property hoverinfo

Determines which trace information appear when hovering links. If none or skip are set, no information is displayed upon hovering. But, if none is set, click and hover events are still fired.

The ‘hoverinfo’ property is an enumeration that may be specified as:
  • One of the following enumeration values:

    [‘all’, ‘none’, ‘skip’]

Returns
Return type

Any

property hoverlabel

The ‘hoverlabel’ property is an instance of Hoverlabel that may be specified as:

Returns
Return type

plotly.graph_objects.sankey.link.Hoverlabel

property hovertemplate

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. The variables available in hovertemplate are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are arrayOk: true) are available. Variables source and target are node objects.Finally, the template string has access to variables value and label. 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>.

The ‘hovertemplate’ 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 hovertemplatesrc

Sets the source reference on Chart Studio Cloud for hovertemplate.

The ‘hovertemplatesrc’ property must be specified as a string or as a plotly.grid_objs.Column object

Returns
Return type

str

property label

The shown name of the link.

The ‘label’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series

Returns
Return type

numpy.ndarray

property labelsrc

Sets the source reference on Chart Studio Cloud for label.

The ‘labelsrc’ property must be specified as a string or as a plotly.grid_objs.Column object

Returns
Return type

str

property line

The ‘line’ property is an instance of Line that may be specified as:

Returns
Return type

plotly.graph_objects.sankey.link.Line

property source

An integer number [0..nodes.length - 1] that represents the source node.

The ‘source’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series

Returns
Return type

numpy.ndarray

property sourcesrc

Sets the source reference on Chart Studio Cloud for source.

The ‘sourcesrc’ property must be specified as a string or as a plotly.grid_objs.Column object

Returns
Return type

str

property target

An integer number [0..nodes.length - 1] that represents the target node.

The ‘target’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series

Returns
Return type

numpy.ndarray

property targetsrc

Sets the source reference on Chart Studio Cloud for target.

The ‘targetsrc’ property must be specified as a string or as a plotly.grid_objs.Column object

Returns
Return type

str

property value

A numeric value representing the flow volume value.

The ‘value’ property is an array that may be specified as a tuple, list, numpy array, or pandas Series

Returns
Return type

numpy.ndarray

property valuesrc

Sets the source reference on Chart Studio Cloud for value.

The ‘valuesrc’ property must be specified as a string or as a plotly.grid_objs.Column object

Returns
Return type

str


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4