Skip to main content
Nov 8, 2018 2:29 AM UTC
Solved

Pie Chart

I have a few questions about the pie chart.

 

1. The data for my piechart is dynamic. Is there any way to set colors for the dynamic data?

2. Is there any way to get the legends with their values displayed next to the chart?

PaiChungAnswer
Nov 8, 2018 3:53 PM UTC

Perhaps James' widget posted here: https://community.ptc.com/t5/ThingWorx-Developers/label-above-pie-chart/m-p/540169

could be a solution.

4 replies

PaiChungAnswer
Nov 8, 2018 3:53 PM UTC

Perhaps James' widget posted here: https://community.ptc.com/t5/ThingWorx-Developers/label-above-pie-chart/m-p/540169

could be a solution.

leeejw717Author
Nov 12, 2018 9:20 PM UTC

Thank you!

 

I'm having trouble getting started with this pie widget. How do I implement this pie widget into my Thingworx mashup?

Nov 13, 2018 10:02 AM UTC

Hi,

 

Please let us know what kind of issue you have with PieWidget?

 

Usually, this widget is acting as any other chart. You need to drag it on your mashup, have a service getting some data for pie chart and bind service data with Data of Pie Widget.

Choose 'LabelField' and 'ValueField' in pie chart properties, save it and done, Pie Chart will show data you need.

 

Thank you,

Raluca Edu

Nov 13, 2018 1:01 PM UTC

I'm not sure if you're looking for something like this here

https://community.ptc.com/t5/IoT-Tech-Tips/How-to-use-a-custom-color-schema-in-Pie-Charts/m-p/558654

 

I'm using custom styles and states to determine the color of a segment in the pie chart.

Works quite well after setting it up...