flyman686 Report post Posted August 17, 2011 Hi, I'm using Powerchart ,and I want to get the data after I draw it . However I use the Struts2 and Java as my sever language , they need the name of data of PowerCharts delivered from the client side to match the name of the attribute of the object that is defined in the Java file ,then the sever side can handle the data . So I must define the name of data of PowerCharts that I draw ,but I don't know how to define it .Please help me as soon as possible . Thanks a lot ! Share this post Link to post Share on other sites
Guest Angshu Report post Posted August 22, 2011 Hi, Thanks for your post. Could you please send us a screenshot or any live link of your requirement? Awaiting for your response. Share this post Link to post Share on other sites
srividya_sharma Report post Posted August 23, 2011 Hi, I'm using Powerchart ,and I want to get the data after I draw it . However I use the Struts2 and Java as my sever language , they need the name of data of PowerCharts delivered from the client side to match the name of the attribute of the object that is defined in the Java file ,then the sever side can handle the data . So I must define the name of data of PowerCharts that I draw ,but I don't know how to define it .Please help me as soon as possible . Thanks a lot ! Hi, To get the chart data as xml in javascript, yo uwould use the following code: var chartReference = FusionCharts("myChartId"); var chartXML = chartReference.getXMLData(); After getting this data, you can set it in some hidden field in the page. You can use the same field name on the server, to retrieve its value. Hope this is what you were looking for. Hope this helps. Srividya Sharma Share this post Link to post Share on other sites
flyman686 Report post Posted August 23, 2011 Hi, Thanks for your post. Could you please send us a screenshot or any live link of your requirement? Awaiting for your response. Hi, I have solved my problem . Here I encounter another one : I create an empty drag-node chart ,then I create nodes in it . But I want to save the data of the chart to a Javascript variable when I click the "submit" button ,how I can make it ? Thank you Share this post Link to post Share on other sites
Guest Angshu Report post Posted August 23, 2011 Hi, Glad to know that you have managed to resolve your problem. You can use FusionCharts JavaScript API (http://www.fusioncha...I/Overview.html) to retrieve chart data and then use your own code to save the data in a JavaScript variable. Please note that the submit button of DragNode chart can only be used for server side processing. You would need to create a button in order to suffice your requirement. Hope this helps. Share this post Link to post Share on other sites
flyman686 Report post Posted August 25, 2011 Hi, Glad to know that you have managed to resolve your problem. You can use FusionCharts JavaScript API (http://www.fusioncha...I/Overview.html) to retrieve chart data and then use your own code to save the data in a JavaScript variable. Please note that the submit button of DragNode chart can only be used for server side processing. You would need to create a button in order to suffice your requirement. Hope this helps. Hi , where should I create the button ? In the drag-node chart or somewhere else ? Besides , the data of DragNode chart is delivered to the server side when the submit button is clicked ,how I can save the data in Javascript variable ? Share this post Link to post Share on other sites
Sanjukta Report post Posted August 25, 2011 Hi, Please refer to the following link for further details on the "Submit" function in Drag Node chart. Ref.- http://www.fusioncharts.com/powercharts/docs/?Dragnode/AddEditNodes.html http://www.fusioncharts.com/powercharts/docs/?Dragnode/Form.html http://www.fusioncharts.com/powercharts/docs/?Dragnode/JSStrength.html Hope this helps. Share this post Link to post Share on other sites