Sign in to follow this  

Recreating chart using same ID breaks rotation

Recommended Posts

Hi. I thought I'd put this in Miscellaneous as I'm not sure if it's a bug or just me doing it wrong! I am creating a chart via Javascript, then destroying it and recreating it using the same ID, like this:

if (FusionCharts.items['myChart1']){

This works - the chart is recreated and I don't get any errors. However something along the way is breaking the chart's rotation feature - it still responds to the mouse being dragged around, but it rotates in an erratic way.


If a clearer explanation is required please let me know.


Many thanks,


Edited by valoukh

Share this post

Link to post
Share on other sites



Calling dispose() function on an instance of FusionCharts disposes the chart completely. This removes it from the DOM tree and also clears the entire chart object. As such you have to create a new instance of the chart and render it again.


We have tried to replicate your issue but are not getting the problem you have stated.


Please send us a sample of your code also let us know which version of FusionCharts you are using.



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