Sign in to follow this  
Rahul Kumar

setDataXml does not clear previous load

Recommended Posts

Im using fusioncharts in flash. Im loading an xml file based on a click event from one chart. It then updates another chart based on the values clicked. After the onload of the xml returns success I do

 

 

 

chart.remove;

 

chart.reInit;

 

chart.setXMLData(xml);

 

chart.render;

 

 

 

The chart re draws but the data is appended to the previous data and the titles are layered on top of each other.

 

 

 

How can I reset the data loaded by the xml in between each new call?

Share this post


Link to post
Share on other sites

Hi,

 
This could be silly but could you please let us know whether you are using parenthesis after method name?
e.g:
 
chart.remove();

chart.reInit();

chart.setXMLData(xml);

chart.render();

 
Also could you please try the attached example?

ClickHandler.zip

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