Sorry I must have misunderstood your solution, I am actually using the FusionCharts.dll and the vb.net examples 
so I have something like this in HTML 
 
<%=GetChart()%>
 
and code behind 
 
Public function GetChart() as string
Dim strXML as string = GetChartData(DateRange)
return FusionCharts.RenderChart("fusioncharts/FCF_Column2D.swf","",strXML,"Chart1", "200","100", false,true)
end function
 
Works fine first time but not on ajax async postback, not sure how i can use your javascript solution code.