Skip to main content
1-Visitor
March 31, 2022
Question

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

  • March 31, 2022
  • 1 reply
  • 1560 views

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.

1 reply

22-Sapphire I
March 31, 2022

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

 

1-Visitor
April 1, 2022

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

22-Sapphire I
April 5, 2022

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