Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
hi,
My pie-chart contains dynamic data. Is there any way to set colors for the dynamic data? Please provide a solution for this.
Thanks in advance,
Sheeta Sable
Solved! Go to Solution.
This is a simple method to doing it. What you will need to do is tie the colors of the pie chart to state definitions and formatting. If you need something more complex (usually not the case), you'll need to add custom JavaScript, services, or data.
https://developer.thingworx.com/en/resources/guides/styles-and-states
This is a simple method to doing it. What you will need to do is tie the colors of the pie chart to state definitions and formatting. If you need something more complex (usually not the case), you'll need to add custom JavaScript, services, or data.
https://developer.thingworx.com/en/resources/guides/styles-and-states