hotNipi / node-red-contrib-ui-level

A linear level type widget to the Node-RED dashboard
MIT License
27 stars 6 forks source link

Option to NOT have minimum and maximum ticks in bar colorized #28

Closed Nodi-Rubrum closed 3 years ago

Nodi-Rubrum commented 3 years ago

Option to NOT have minimum and maximum ticks in bar colorized.

Any way to not have ui-level colorize the minimum and maximum ticks in the bar? Not understanding why they are colorized when the value is zero.

hotNipi commented 3 years ago

Not sure I'm understand correctly. image

If you mean that with with minimum (or less than minimum) value, some "leds" are active, than that is how most of similar real world indicators work. And yes there is another approach - no active leds if value is minimum or bellow.

Why I decided to take the first approach? Well, that was then what I liked most. It shows more clearly that the widget is working well. By that I mean that if you come and look your dashboard at first glance - you should be able to determine conditions of the elements fast and seamlessly. That way there is no doubts that widget works. Just value is what it is at this moment.

Can it be configurable? If there will be reasonable explanations why there should be that option, then it is possible. But for now it does not seems to me necessary.

But if it is not what you mean, please explain a little more. May be some images or so...

Nodi-Rubrum commented 3 years ago

Ah, thanks for the details, appreciated. Oh, and your approach makes a lot of sense, this was designed to mimic what a typical audio signal processor often displays right? I was thinking I could abuse it... to be a vertical progress bar. But that was definitely taking control out of the design scope, true. If I could hide the max/min values, I would abuse it, so to speak. :)