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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Dynamic Style for Bars in Bar chart

TanmeyTWX
17-Peridot

Dynamic Style for Bars in Bar chart

Hi Experts,

 

I have a very specific requirement to highlight certain bars in a Bar Chart without changing original colors of the bars.

 

Current scenario: Data infotable is bound to Chart and chart adjusts and displays bars according to the data value with different color for all bars.

 

Expected: Data infotable has 2 values beyond threshold and chart should highlight those 2 bars in red color and rest of the bars should remain in original(different) colors.

 

Tried and didn't work: Applied state formatting with a threshold value which turns all the bars meeting condition in red color and rest of them in another single color. Attached is the screenshot of the same.

TanmeyTWX_1-1664460168835.png

 

 

Example: Display top 2 fruits bars in red which has highest sales i.e. Banana and Pear.

 

TanmeyTWX_0-1664459932522.png

 

1 REPLY 1

Hello @TanmeyTWX,

What version of ThingWorx and Which Widget are you using?
Have you looked at using DataSeriesStyle State Definitions?

Thanks

Peter

Top Tags