I’m trying to get a gauge quickly indicates to an operator where a process is at relative to a nominal value. To do this, I’d like to be able to go from red to green to red, but I’m not sure how to accomplish this since you define the ranges in a dictionary (can only have 1 “red” key). I tried using a list of ranges and that didn’t help. Any ideas?
daq.Gauge(
color={
'gradient':True,
'ranges':
{
'red':[0,4],
'green':[4,6],
**'red':[6,10],**
},
},
id='ttt',
showCurrentValue=True,
units="Nm",
label='Torque to Turn',
value=5,
min=0,
max=10,
),