Skip to main content
1-Visitor
November 8, 2018
Solved

Pie Chart

  • November 8, 2018
  • 2 replies
  • 3120 views

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?

Best answer by PaiChung

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

could be a solution.

2 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
November 8, 2018

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

could be a solution.

leeejw7171-VisitorAuthor
1-Visitor
November 12, 2018

Thank you!

 

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

17-Peridot
November 13, 2018

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

16-Pearl
November 13, 2018

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...