Sign in to follow this  
daade

Pie Chart Font Size Problem

Recommended Posts

Hi all;

 

I'm a bit new on fusioncharts. So, if i'm not in the right place, please notify me..

 

I'm trying to generate a piechart that should have a big font sized title(caption). I tried lots of ways but it doesnt work properly..

 

whatever I tried, It worked on columnbar, but not worked in piechart..

 

Could you please help me.. how I can show the caption as big sized than the other text elements..?

 

code snippet may be useful to understand...

 

 

strXML = "<chart captionPadding='2' chartTopMargin='2' chartLeftMargin='2' chartBottomMargin='2' chartRightMargin='2' caption='ADANA' bgcolor='#EEEEEE' decimalPrecision='2' showNames='1' numberPrefix=' %25' decimalSeparator='.' >";

for (int i = 0; i < 6; i++)

{

PartiAd = partiAdGetir(Convert.ToInt32(ilk6Parti[i, 0]));

strXML += "<set name='" + PartiAd.ToString() + "' value='" + Convert.ToString(ilk6Parti[i, 1]) + "' />";

}

strXML += "<set name='DİĞER' value='" + Convert.ToString(diger) + "' />";

strXML +="<styles>";

strXML +="<definition>";

strXML +="<style name='MyFirstFontStyle' type='font' face='Verdana' size='18' color='FF0000' bold='1' bgColor='FFFFDD' />";

strXML +="<style name='MyFirstAnimationStyle' type='animation' param='_xScale' start='0' duration='2' />";

strXML +="<style name='MyFirstShadow' type='Shadow' color='CCCCCC' />";

strXML +="</definition>";

strXML +="<application>";

strXML +="<apply toObject='Caption' styles='MyFirstFontStyle,MyFirstShadow' />";

strXML +="</application>";

strXML +="</styles>";

strXML += "</chart>";

strXML = strXML.Replace(",", ".");

return FusionCharts.RenderChart("FusionCharts/Pie3D.swf", "", strXML, "ilPie", "600", "300", false, false);

Edited by daade

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

First of all, we would like to thank you for showing interest in FusionCharts.

 

You would need to use STYLES in order to achieve this.

 

Please find a sample file attached for your reference.

 

For more details, please visit the links below:

 

http://www.fusioncha...les/Styles.html

 

http://www.fusioncha...s/HowToUse.html

 

http://www.fusioncha...tyles/Font.html

 

Hope this helps.smile.gif

Pie.zip

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thank you very much for your appreciation.

 

Keep smiling and keep FusionCharting!biggrin.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this