Skip to main content
1-Visitor
March 14, 2018
Solved

label above pie chart

  • March 14, 2018
  • 1 reply
  • 3828 views

Hi,

I have a pie chart bound with data (e.g i have Bound production count of 3 machines in pie chart but I am able to view which count belongs to which machine only using mouse hover which is very difficult to understand each and every time on opening the page and also will be difficult if machine number increases.

I wanted to display the label (machine name) above pie chart according to its data.

Please provide some solutions as We are doing a development project.

 

 

Thanks,

V Shalini.

Best answer by jamesm1

You can use the attached pie chart widget, which behaves in the way you describe. It's based on this charting library: http://d3pie.org

 

Note that similar to widgets available under Thingworx Labs on the Marketplace, this widget is not officially supported. In addition, this is kind of a work in progress and has a few known issues:

 

1. Selections don't work correctly when using the widget sort or group options. If you want to sort the data, please do so in the service not the widget

2. The bounce effect is not working in this version

 

Otherwise it should work like most widgets, and as a few other nice options not found in the default pie chart. If you have any questions or run into any issues, please let me know (although I can't guarantee a fix.)

 

1 reply

22-Sapphire I
March 15, 2018

Since I don't see an option right now to make that possible, unfortunately that would have to be done custom.

1-Visitor
June 27, 2018

Hi PaiChung,

Thanks for your reply,

Should I write a custom java service and trigger it on mashup loaded?

 

Thanks,

V shalini.

22-Sapphire I
June 27, 2018

I think it is best you create a full custom widget.

I've actually seen one created, and it might become part of core, although that probably will take a while.