heika Report post Posted September 10, 2012 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
FusionCharts Support Report post Posted September 10, 2012 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
heika Report post Posted September 11, 2012 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 Share this post Link to post Share on other sites
Guest Sumedh Report post Posted September 11, 2012 Hi, Could you please try this sample. Please find attached sample. DragLine_getXMLData.zip Share this post Link to post Share on other sites
heika Report post Posted September 13, 2012 Is that I just need to unzip it and click on the button? If so, the result is Share this post Link to post Share on other sites
Guest Sumedh Report post Posted September 13, 2012 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. Share this post Link to post Share on other sites