Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Dash DAQ Gauge: Red to Green to Red

$
0
0

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,
        ),

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images