Vijaya_FC Report post Posted April 25, 2011 (edited) Hi, We are using fusion charts 1.2.3 - paid version in our rails application. But using this, how to get the data used for generating the charts . Thanks, Vijaya Edited April 25, 2011 by Vijaya_FC Share this post Link to post Share on other sites
Guest Angie Report post Posted April 25, 2011 Hi, Welcome to FusionCharts Forum! It seems like you are looking for JavaScript version of FusionCharts. For more details, please go through the links below: http://www.fusioncharts.com/docs/?Code/ROR/Ruby_basicexample.html http://www.fusioncharts.com/docs/?Code/ROR/Ruby_array.html http://www.fusioncharts.com/docs/?Code/ROR/Ruby_db.html http://www.fusioncharts.com/docs/?Code/ROR/Ruby_JS_url.html http://www.fusioncharts.com/docs/?Code/ROR/Ruby_JS_xml.html Hope this helps. Share this post Link to post Share on other sites
Vijaya_FC Report post Posted April 25, 2011 (edited) Hi, Thanks for your reply. How to get the data from the generated chart. As per the examples, they are using getXMLData, getChartData functions. As in, http://www.fusioncharts.com/Code/JavaScript/Basics/GettingDataBackFromChart/Get_XML_data_from_a_chart_using_getXMLData.html Is it available in version 1.2? If it is not available, how to update to the recent version. And also, I am trying with the V-3 free version on my local machine, but its not working. Its throwing error: getXMLData is not a function In the view I am using: <% render_chart_html "/FusionCharts/MSLine.swf", '', str_xml,"myChart1#{params[:tab_id]}", 800, 400, false do-%> In JS function - getData var chartReference = FusionCharts(chart_id); var chartXML = chartReference.getXMLData(); alert(chartXML); But its not working. please let me know where I am missing. Edited April 25, 2011 by Vijaya_FC Share this post Link to post Share on other sites
Guest Angie Report post Posted April 25, 2011 Hi, You would need to upgrade to latest version of FusionCharts i.e v3.2 Please try the link to upgrade your FusionCharts : http://www.fusioncharts.com/PUC/ To know more regarding the upgrade, please refer to the link: http://www.fusioncharts.com/docs/?Introduction/Upgrading32.html Hope this helps. Share this post Link to post Share on other sites
Vijaya_FC Report post Posted April 25, 2011 I am trying with the V-3 free version on my local machine, but its not working. Its throwing error: getXMLData is not a function In the view I am using: <% render_chart_html "/FusionCharts/MSLine.swf", '', str_xml,"myChart1#{params[:tab_id]}", 800, 400, false do-%> In JS function - getData var chartReference = FusionCharts(chart_id); var chartXML = chartReference.getXMLData(); alert(chartXML); But its not working. please let me know where I am missing. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted May 9, 2011 Hi, Will it be possible to provide us a live URL or a scaled down version of your sample which we can check? If you are sending sample please attach it with the post. Share this post Link to post Share on other sites