maks Report post Posted December 11, 2008 Hi: I'm creating chart in ASP.net(C#). Everything is working fine and my chart is appearing, but it's on left side of the page. How could I display chart at the center of the page? I tried....... xmlData.Append("<div align='center'>"); xmlData.Append("<chart labelDisplay='Rota......................... ....... xmlData.Append("</chart> "); xmlData.Append("</div>"); chart is not appearing in that case......... any help is highly appreciated. Regard Share this post Link to post Share on other sites
Arindam Report post Posted December 11, 2008 Hi, It is a wrong code. You can not use <div> tag mixing with xml. You have to specify <div ..... align= 'center' > when you are rendering the chart. See this String mVar="<div align='center' >" mVar += FusionCharts.RenderChart( . . . . . . . . ); mVar += "</div>"; Share this post Link to post Share on other sites
maks Report post Posted December 17, 2008 Tahnks for your reply Arindam. But I can't use the code in my C# page. String mVar="<div align='center' >" ; mVar += FusionCharts.RenderChart("FusionCharts/StackedColumn3D.swf", "", xmlData.ToString(), "FactorySum", "450", "600", false, false); mVar += "</div>"; gives me error.......... Error 1 'Quarterly_Report.GetQuarterlyEventSummaryChartHtml()': not all code paths return a value thanks again for the help. Regards, Share this post Link to post Share on other sites
maks Report post Posted December 17, 2008 I rendered the chart using the following code: return FusionCharts.RenderChart("FusionCharts/StackedColumn3D.swf", "", xmlData.ToString(), "FactorySum", "450", "600", false, false); regards, Share this post Link to post Share on other sites
Arindam Report post Posted December 17, 2008 (edited) Hi, Please use this. String mVar="<div align='center' >" ; mVar += FusionCharts.RenderChart("FusionCharts/StackedColumn3D.swf", "", xmlData.ToString(), "FactorySum", "450", "600", false, false); mVar += "</div>";return mVar; Edited December 17, 2008 by Guest Share this post Link to post Share on other sites
maks Report post Posted December 18, 2008 Thanks Arindam......thank you........ It's working.......... Share this post Link to post Share on other sites