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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. 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
PEHOWE
17-Peridot
(To:TanmeyTWX)

Hello @TanmeyTWX,

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

Thanks

Peter

Announcements


Top Tags