Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Thermometer and negative min value

hi all,
I have a question that may seem trivial.

I have not found anywhere in the documentation how a negative value can be displayed as a minimum full scale in a thermometer DAQ component.

Can anyone help me?
Thank you
lukesky71

Hi,

You can set the scale to a negative min value, however the minus sign will be on the right side… Is this what you mean?

If it is, then I think it is a bug in dash_daq, as the direction is set to rtl to put the label on the left of tick right aligned, but the label itself should be ltr.

Hi jlfsjunior, thank you for your answer.
I’ve tested your suggestion but I still have some problems. If I try the following code

daq.Thermometer(
                                min='10-',
                                max=100,
                                value=20,
                                label='°C',
                            ),

I obtain a thermometer with the correct lower and upper limit, but no indication of the current value.

immagine

Any idea?
Thanks in advance
Lukesky1971