Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Show outer labels in a pie chart? (Read 2630 times)
Dennis
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Sep 14th, 2016
Show outer labels in a pie chart?
Sep 14th, 2016 at 9:31am
Print Post  
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?
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 2255
Joined: Oct 19th, 2005
Re: Show outer labels in a pie chart?
Reply #1 - Sep 14th, 2016 at 2:25pm
Print Post  
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
Select All
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
  
Back to top
 
IP Logged
 
Dennis
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Sep 14th, 2016
Re: Show outer labels in a pie chart?
Reply #2 - Sep 14th, 2016 at 7:11pm
Print Post  
Hi,

The labels show now, thanks. Is there a way to increase the font size?
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 2255
Joined: Oct 19th, 2005
Re: Show outer labels in a pie chart?
Reply #3 - Sep 15th, 2016 at 8:57am
Print Post  
Hi,

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

Code
Select All
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
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint