plotly.graph_objects.indicator package

class plotly.graph_objects.indicator.Delta(arg=None, decreasing=None, font=None, increasing=None, position=None, prefix=None, reference=None, relative=None, suffix=None, valueformat=None, **kwargs)

Bases: plotly.basedatatypes.BaseTraceHierarchyType

property decreasing

The ‘decreasing’ property is an instance of Decreasing that may be specified as:

Returns

Return type

plotly.graph_objects.indicator.delta.Decreasing

property font

Set the font used to display the delta

The ‘font’ property is an instance of Font that may be specified as:

Returns

Return type

plotly.graph_objects.indicator.delta.Font

property increasing

The ‘increasing’ property is an instance of Increasing that may be specified as:

Returns

Return type

plotly.graph_objects.indicator.delta.Increasing

property position

Sets the position of delta with respect to the number.

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

    [‘top’, ‘bottom’, ‘left’, ‘right’]

Returns

Return type

Any

property prefix

Sets a prefix appearing before the delta.

The ‘prefix’ property is a string and must be specified as:
  • A string

  • A number that will be converted to a string

Returns

Return type

str

property reference

Sets the reference value to compute the delta. By default, it is set to the current value.

The ‘reference’ property is a number and may be specified as:
  • An int or float

Returns

Return type

int|float

property relative

Show relative change

The ‘relative’ property is a boolean and must be specified as:
  • A boolean value: True or False

Returns

Return type

bool

property suffix

Sets a suffix appearing next to the delta.

The ‘suffix’ property is a string and must be specified as:
  • A string

  • A number that will be converted to a string

Returns

Return type

str

property valueformat

Sets the value formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.

The ‘valueformat’ property is a string and must be specified as:
  • A string