Enrico Cirignaco
Enrico Cirignaco

Reputation: 33

How to change Node-RED Gauge Color dynamically

here on GitHub I found out that it should be possible to change the color of the gage with the colors property dynamically.

However the following code is not working. The min and max properties works fine. Only the colors property doesn't seems to work. Any Ideas why?

msg.ui_control = {
    "gtype": "gage",

    "options":{
        "min": 0,
        "max": 200,
        "colors": ["blue","blue", "blue"]    
    }
}
return msg;

Upvotes: 0

Views: 1500

Answers (1)

Roger
Roger

Reputation: 26

colors is not an option, it should be plced directly under gtype

Upvotes: 1

Related Questions