Sign in to follow this  
deepti

Fusioncharts Js Error

Recommended Posts

Hi,

 

I am getting the following error in firebug for my charts.

 

DesignTimeError: #25081843 LChart8fe14ecaa36843efa3b88849b0978b89.render Error >> #25081843:IECompatibility() Chart Id is same as a JavaScript variable name. Variable naming error. Please use unique name for chart JS variable, chart-id and container id.

 

I am getting the charts properly. But can I get rid of this error in firebug?

 

Thanks,

Deepti.

 

 

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi Deepti,

 

This error might come if you have used same name either, for your chart_ID, JavaScript variable name or container ID.

 

So, could you please try once by providing unique name for each of these above mentioned?

 

Also, to provide cross-browser compatibility, we recommend you not to start the chart_ID with a numerical value, nor use space as part of the ID.

 

Ref. Code:

<div id="chartContainer">FusionCharts XT will load here!</div>          
<script type="text/javascript"><!--
 var myChart = new FusionCharts( "FusionCharts/Column3D.swf","myChartId", "400", "300", "0" );//Unique chart_ID: "myChartId" and JavaScript variable name: "myChart"
     myChart.setXMLUrl("Data.xml");
     myChart.render("chartContainer");//Unique container ID: "chartContainer" 
 // -->     
</script>      

Hope this helps!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this