daade Report post Posted May 18, 2011 (edited) 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 May 18, 2011 by daade Share this post Link to post Share on other sites
Guest Angshu Report post Posted May 18, 2011 Hi, Welcome to FusionCharts Forum! 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. Pie.zip Share this post Link to post Share on other sites
daade Report post Posted May 18, 2011 (edited) thank you Angshu it works!!! see you soon again Edited May 18, 2011 by daade Share this post Link to post Share on other sites
Guest Angshu Report post Posted May 19, 2011 Hi, Thank you very much for your appreciation. Keep smiling and keep FusionCharting! Share this post Link to post Share on other sites