Skip to main content
1-Visitor
June 19, 2020
Solved

state definition on gauge

  • June 19, 2020
  • 2 replies
  • 2115 views

Hi everyone,

 

I am using in my dashboard a gauge widge where it is showing a value.

 

I would like to create a state formating to change the color from my gauge.

 

Where I need:

 

When value equal 1 -> red

 

When value equal 2 -> green

 

So, I will be two variables:

 

One to show the gauge's value binded with "Data" and another to control the gauge's color binded with the property value formatter.

 

Is possible to do this?

 

Regards,

Best answer by leokeinsfeld

Hi @zyuan1 

 

Thank you for attention.

 

I was not able to do it.

 

Then I changed the widget Gauge for widget Progress Gauge.

 

Regards,

Leonardo

2 replies

5-Regular Member
June 22, 2020

Of course you can, just bind infotable to Gauge and give different property bindings to "Dependent Field" in "State-based Formatting" in ValueFormatter, and Data in Gauge

1-Visitor
June 22, 2020

Hi @zyuan1 

 

Thanks for your answer.

 

I have tried do it but do not worked well.

 

I follow this steps:

 

1 - Binded my variable to show the value on field "Data" from gauge;

Prt2.jpg

 

2 - Binded my variable to control the color of gauge into the propertie "ValueFormatter";

 

Prt1.JPG

 

It looked like this:

 

gauge.JPG

 

I would like to show the value but to control the color of gauge through of another variable.

 

Regards 

5-Regular Member
June 24, 2020

Maybe you can put a Shape widget under Gauge,and assign Formating on that. So that you can control the outer range color based on another input.

Support
July 10, 2020

Hi @leokeinsfeld.

 

If you're saying that the Progress Gauge widget resolved your issue, please mark your last post as the Accepted Solution for the benefit of others with the same issue.  If you are still searching for a solution, please let us know.

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon