- Welcome, Guest. Please Login or Register
MindFusion  
  Version 2 of our Xamarin Calendar component adds Resource view and support for Universal Windows Platform. Now beta testing spreadsheet component for Java Swing.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Show outer labels in a pie chart?
Read 657 times

Dennis   Offline
YaBB Newbies
*
Posts: 2
I Love MindFusion!


   
     
 
Show outer labels in a pie chart?
Sep 14th, 2016 at 10:31am
 
Hi there,

I'm trying to create a pie chart with the JS library and I am having a problem how to show the outer labels.

I set them in the construcotr:

var series = new PieSeries(myValues, null, new Collections.List(["t1", "t2", "t3", "t4", "t5"]));

I have no errors, the pie shows but no labels. Is this a bug?
 
 
 
IP Logged    
 
     

Slavcho   Offline
YaBB Moderator
*****
Posts: 938
Gender: male
tech.support


   
     
 
Re: Show outer labels in a pie chart?
Reply #1 - Sep 14th, 2016 at 3:25pm
 
Hi,

The pie chart draws only inner labels by default. You can specify you want to show all label kinds supported by the series like this -

Code:
pieChart.showDataLabels = Charting.LabelKinds.All; 



LabelKinds allows bitwise combination where you could enable / disable individual flags to show specific labels -

http://www.mindfusion.eu/onlinehelp/chart.javascript/index.htm?T_MindFusion_Char...

Regards,
Slavcho
Mindfusion
 
 
 
IP Logged    
 
     

Dennis   Offline
YaBB Newbies
*
Posts: 2
I Love MindFusion!


   
     
 
Re: Show outer labels in a pie chart?
Reply #2 - Sep 14th, 2016 at 8:11pm
 
Hi,

The labels show now, thanks. Is there a way to increase the font size?
 
 
 
IP Logged    
 
     

Slavcho   Offline
YaBB Moderator
*****
Posts: 938
Gender: male
tech.support


   
     
 
Re: Show outer labels in a pie chart?
Reply #3 - Sep 15th, 2016 at 9:57am
 
Hi,

There are various fontSize properties provided by the Theme class. For data labels set this -

Code:
pieChart.theme.dataLabelsFontSize = 12; 



Here's a list of other Theme properties you could set for the chart -
http://www.mindfusion.eu/onlinehelp/chart.javascript/index.htm?T_MindFusion_Char...

Regards,
Slavcho
Mindfusion
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print