FusionCharts Forum: How can i consume fusion chart inside asp.net webpart in asp.net web application? - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How can i consume fusion chart inside asp.net webpart in asp.net web application?

#1 User is offline   kk 

  • Forum Newbie
  • Group: Members
  • Posts: 1
  • Joined: 27-May 10

Posted 27 May 2010 - 09:10 AM

Hi,

How can i consume fusion chart inside a asp.net webpart control for asp.net web application?

I tried using the following codes but it doesn't work. The web part nor thechart is not visible at all.

Can anyone please let me know if this can be resolved?

<asp:WebPartZone ID="WebPartZone2" runat="server">

<ZoneTemplate>

<%=GetLatestYearSalesByCountryByMarket() %>

</ZoneTemplate>

</asp :WebPartZone>

public string GetLatestYearSalesByCountryByMarket()

{

DataBase dbUtill = new DataBase();

DataTable dt = dbUtill.GetDataSet("Get_SalesByCountry_Market", CommandType.Text).Tables[0];

//string chartXML = CreateFusionCharts.ColumnChart_MultipleSeries(dt, "Latest year sales by country by market", "Sales ($)", "");

string chartXML = CreateFusionCharts.ColumnChart_MultipleSeries(dt, "Sales by year by Product", "Sales ($)", "");

return FusionCharts.RenderChart("App/FusionCharts/MSColumn3D.swf", "", chartXML, "Chart2", "590", "260", false, true);

}

Thanks and Regards,

kk


The Saint
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic