sutare

Members
  • Content count

    2
  • Joined

  • Last visited

Everything posted by sutare

  1. I have tried following code ( and other code ) in a local server sharepoint installation with moss. But the graph does not render. What's wrong? I have set breakpoints in FusionCharts.js but the code does not run Kind Regards Marcus protected override void CreateChildControls() { base.CreateChildControls(); StringBuilder xmlData = new StringBuilder(); string test = "<chart caption='Monthly Revenue' xAxisName='Month' yAxisName='Revenue' numberPrefix='$' showValues='0'>"; xmlData.Append(test); xmlData.Append("<set label='Jan' value='420000' />"); xmlData.Append("</chart>"); StringBuilder sb = new StringBuilder(); sb.Append("<div id="chartdiv" style="height: 300px; width: 300px""); //------Testing 1------ sb.Append("</div>"); sb.Append("<script language="JavaScript" src="FusionCharts.js" type="text/javascript"> var myChart = new FusionCharts("Column2D.swf","Data.xml" ,"","productSaleshist2", "80", "29", "false", "false");"); sb.Append("myChart.render("chartdiv");</script>"); //-----Slut Testing 1------ HtmlGenericControl graph = new HtmlGenericControl(); graph.InnerHtml = sb.ToString(); this.Controls.Add(graph); }
  2. render graph in sharepoint webpart

    Comment: I'm not using xmldata. Because I'm loading "Data.xml" with follwing code <chart caption='Monthly Revenue' xAxisName='Month' yAxisName='Revenue' numberPrefix='$' showValues='0'> <set label='Jan' value='420000' /> </chart>