Sign in to follow this  
ajitEarthwave

Javascript Charts Javascript Issue..

Recommended Posts

Hi,

We are tying to migrate to FusionCharts XT (v3.2.2) Service Release 2 (Released on 25th January, 2012) and use JavaScript Charts instead of Flash Charts.

 

We have multiple charts in a page displayed using JQuery Ajax. The first time it works fine but when we make a second call to refresh the container containing the chart, it gives a Javascript error message in Firebug

 

#06091847 chartobject-2 Warning >> A FusionChart oject with the specified id "divChart3457Id" already exists. Renaming it to chartobject-2

[break On This Error]

 

...id+'" already exists. Renaming it to '+(this.id=a.uniqueId())));if(e.type&&e.typ...

 

FusionCharts.js (line 19)

 

The above situation doesn't arise if we use Flash Charts.

 

Can you please provide inputs for the above?

 

Regards,

Ajit

Share this post


Link to post
Share on other sites
Guest Sumedh

Greetings. smile.gif

 

Please try 'dispose()' javascript function and re-render the chart.

 

This method removes a chart instance from page and memory.

 

Ref.code:

FusionCharts("myChartId").dispose()

 

Hope this helps. smile.gif

Share this post


Link to post
Share on other sites

Greetings. smile.gif

 

Please try 'dispose()' javascript function and re-render the chart.

 

This method removes a chart instance from page and memory.

 

Ref.code:

FusionCharts("myChartId").dispose()

 

Hope this helps. smile.gif

 

 

Thanks the dispose() got rid of the javascript issue.

 

Thanks,

Ajit

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