Hi, 
  
  
  
I am display a Bar2D chart in ASP.NET application. I am getting the data from database and populating it to the array and further using it in the FusionChart. 
  
  
I have included the "FusionChart.js" file in my aspx page. The chart was displaying fine until yesterday but it is giving the following error today. 
  
  
"Line: 27 
Error: Object doesn't support property or method 'setAttribute'" 
  
  
In the debug mode, the error is caused by the following code in FusionChart.js file. 
  
if(swf) { this.setAttribute('swf', swf); } 
  
  
I have not modified the code since the time it was last working. 
  
  
  
The following is my code behind code; 
  
  
  
StringBuilderxmlData = new StringBuilder(); 
  
xmlData.Append("<chartcaption='Posting Trend Report' formatNumberScale='1' rotateValues='1'placeValuesInside='1' >"); 
  
for (int i = 0; i < names.Count;i++) 
  
{ 
  
xmlData.AppendFormat("<setlabel='{0}' value='{1}'/>", chartData[i, 0], chartData[i, 1]); 
  
} 
  
xmlData.Append("</chart>"); 
  
  
literalChart.Text = FusionCharts.RenderChart("../FusionCharts/Bar2D.swf","", xmlData.ToString(), "postingTrends", "800", "1500",false, true); 
  
 The folowing is my aspx code 
  
  
<script src="js/FusionCharts.js"type="text/javascript"></script> 
  
  
//rest of code 
  
<div> 
       <asp:Literal ID="literalChart"runat="server"></asp:Literal> 
</div> 
  
  
  
  
  
  
Any insight on this issue will be helpful. 
  
  
Thanks 
  
Shwetha