cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

state definition on gauge

leokeinsfeld
13-Aquamarine

state definition on gauge

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,

1 ACCEPTED SOLUTION

Accepted Solutions
leokeinsfeld
13-Aquamarine
(To:zyuan1)

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

View solution in original post

5 REPLIES 5

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

leokeinsfeld
13-Aquamarine
(To:zyuan1)

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 

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.

leokeinsfeld
13-Aquamarine
(To:zyuan1)

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

slangley
23-Emerald II
(To:leokeinsfeld)

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

Top Tags