Skip to main content
Mar 31, 2022 7:27 AM UTC
Question

how to change the shape stroke color based on a customclass name

I have created a mashup and used it in collection and am not able to change the stroke color using Custom CSS kindly some one advice what i need to do, do give the shapes different color based on their name.

3 replies

Mar 31, 2022 12:47 PM UTC

Have you tried using state based definitions?

The widget should have certain properties that I think are called 'formatter' to allow for a state based definition to be associated.

https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Composer/Visualization/StyleandStateDefinitions.html

 

Apr 1, 2022 5:13 AM UTC

Yeah, in that shape already data is binded from a different property so i cannot map the Machine name function to it.

Apr 5, 2022 3:53 PM UTC

You could always create a wrapper service to combine the necessary information you need.