plotly.graph_objects.layout.slider package

class plotly.graph_objects.layout.slider.Currentvalue(arg=None, font=None, offset=None, prefix=None, suffix=None, visible=None, xanchor=None, **kwargs)

Bases: plotly.basedatatypes.BaseLayoutHierarchyType

property font

Sets the font of the current value label text.

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

Returns

Return type

plotly.graph_objects.layout.slider.currentvalue.Font

property offset

The amount of space, in pixels, between the current value label and the slider.

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

Returns

Return type

int|float

property prefix

When currentvalue.visible is true, this sets the prefix of the label.

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 suffix

When currentvalue.visible is true, this sets the suffix of the label.

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 visible

Shows the currently-selected value above the slider.

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

Returns

Return type

bool

property xanchor

The alignment of the value readout relative to the length of the slider.

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

    [‘left’, ‘center’, ‘right’]

Returns

Return type

Any

class plotly.graph_objects.layout.slider.Font(arg=None, color=None, family=None,