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);
}