Sign in to follow this  
heika

Getting Updated Data In Dragline.swf

Recommended Posts

Hi,

 

I am using fusion charts 3.2.4 and i want to use DragLine.swf for my project.

When I try to use javascript function to get the data of the updated chart, I can't get the expected result.

 

I used getDataWithId() that I expect to get a data array but the error

 

Uncaught TypeError: Object [object Object] has no method 'getDataWithId'

 

is shown.

 

And when I tried to use getXMLData(), the XML code did not change to the updated one.

 

Is there any method that I can usejavascript to get the updated data?

Share this post


Link to post
Share on other sites

Hi,

 

For all the drag charts, you can get the updated XML using passing true as a parameter to the getXMLData function.

 

Example: var updatedxml = myChart.getXMLData(true);

 

Can you please check once?

 

Also, can you please tell whether you are using Flash chart or JavaScript Chart and the version of the chart you are using. Also, are you trying to example from local file system or from a web server?

 

From our tests getDataWithId seems to work fine. Perhaps the section of the code where you are using it may help debug further. Mostly you need to check if you are using correct chart's reference.

Share this post


Link to post
Share on other sites

I am using flash charts and I tried using getXMLData(true) but it still gives me old data.

Then I tried to use DragColumn2D.swf, getDataWithId works fine.

I will try to switch back to DragLine.swf later. Thanks for the quick response smile.gif

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

We have tested the same sample and we are able to get the chart XML.

 

Please find the attached screen-shot for your reference.

post-24802-0-52506000-1347519397_thumb.png

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