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

state definition on gauge

SOLVED
Highlighted
Amethyst

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
Highlighted

Re: state definition on gauge

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
Highlighted

Re: state definition on gauge

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

Highlighted

Re: state definition on gauge

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 

Highlighted

Re: state definition on gauge

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.

Highlighted

Re: state definition on gauge

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

Highlighted

Re: state definition on gauge

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

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!