An example of a default Thermometer without any extra properties.
Display the value of the thermometer along with optional units with
Control the size of the thermometer by setting
Display a label alongside the thermometer in the specified positon by setting
Control the intervals at which labels are displayed, as well as the labels themselves with the
Access this documentation in your Python terminal with:
id (string; optional): The ID used to identify this compnent in Dash callbacks
base (number; default
10): Base to be used in logarithmic scale.
color (string; optional): The color of the thermometer fill/current value text
className (string; optional): Class to apply to the root component element.
height (number; default
192): The height of the thermometer in pixels
logarithmic (boolean; optional): If set to true, a logarithmic scale will be used.
label (dict; optional): Description to be displayed alongside the control. To control styling, pass an object with label and style properties. label has the following type: string | dict containing keys ‘style’, ‘label’. Those keys have the following types:
labelPosition (a value equal to: ‘top’, ‘bottom’; default
'top'): Where the component label is positioned.
min (number; default
0): The minimum value of the thermometer. If logarithmic, represents the minimum exponent.
max (number; default
10): The maximum value of the thermometer. If logarithmic, represents the maximum exponent.
showCurrentValue (boolean; optional): If true, the current value of the thermometer will be displayed
scale (dict; optional): Configuration for the component scale. scale has the following type: dict containing keys ‘start’, ‘interval’, ‘labelInterval’, ‘custom’. Those keys have the following types:
start(number; optional): Value to start the scale from. Defaults to min.
interval(number; optional): Interval by which the scale goes up. Attempts to dynamically divide min-max range by default.
labelInterval(number; optional): Interval by which labels are added to scale marks. Defaults to 2 (every other mark has a label).
custom(dict; optional): Custom scale marks. The key determines the position and the value determines what will show. If you want to set the style of a specific mark point, the value should be an object which contains style and label properties. custom has the following type: number | dict containing keys ‘style’, ‘label’. Those keys have the following types: - style (string; optional) - label (string; optional)
style (dict; optional): Style to apply to the root component element.
theme (dict; default
light): Theme configuration to be set by a ThemeProvider
units (string; optional): Label for the current value
value (number; optional): The value of thermometer. If logarthmic, the value displayed will be the logarithm of the inputted value.
width (number; default
20): The width of the thermometer in pixels