ssanand Report post Posted October 24, 2008 Hi, I'm using drag node chart and i'm creating nodes and connectors dynamically (by click on "Add Node" and "Add connectors" popup menu options). I'm providing functionality to save the save, for that i'm getting the chart data using chart.getXMLData method. While creating the chart again using this returned XML (using chat.setDataXML method), arrows are displayed at the both the ends (while creating i'm selected arrowAtEnd). It seems the returned XML, for connectors element, arrowAtStart and arrowAtEnd attributes are not included and hence it is displaying chart's default connector values for these two. See below images, before and after and here is my javascript used to redraw the chart function test(){ var chart = getChartFromId('seqChart'); if (chart != null){ var xml = chart.getXMLData();chart.setDataXML(xml); //chart.render("chartDiv");} } Share this post Link to post Share on other sites
Pallav Report post Posted October 31, 2008 Hi, In the getXML(), we primarily return the new data for the chart (new nodes/modified nodes). We do not add any cosmetic attributes as such. Share this post Link to post Share on other sites
shilpashivapuram Report post Posted May 14, 2009 Hello, I was trying to access the same method chart.getXMLData(), but was getting the error stating that the object doesnt support this method. Following is the code <?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>FusionCharts v3 Documentation</title> <link rel="stylesheet" href="../Contents/Style.css" type="text/css" /> <script language="JavaScript" src="../JSClass/FusionCharts.js"></script> </head> <body> <table width="98%" border="0" cellspacing="0" cellpadding="3" align="center"> <tr> <td valign="top" class="text" align="center"> <div id="chartdiv" align="center"> FusionCharts. </div> <script type="text/javascript"> var chart = new FusionCharts("../Charts/DragNode.swf", "ChartId", "600", "550", "0", "0"); chart.setDataURL("Data/DragNode3.xml"); chart.render("chartdiv"); </script> </td> </tr> <tr> <td valign="top" class="text" align="center"> </td> </tr> <tr> <td valign="top" class="text" align="center"><a href="Data/DragNode3.xml" target="_blank"><img src="../Contents/Images/BtnViewXML.gif" alt="View XML for the above chart" width="75" height="25" border="0" /></a></td> <td valign="top" class="text" align="center"><input type="button" value="click here" onclick="getXML()"/></td> </tr> </table> </body> <script type="text/javascript"> function getXML(){ //Get a reference to our chart var ourChart = getChartFromId("ChartId"); //Get the data from chart var xmlRtn = ourChart.getSWFHTML(); //Show it to user in alert box. alert(xmlRtn); } </script> </html> Please let me know incase I am missing out on something Share this post Link to post Share on other sites
Rahul Kumar Report post Posted May 15, 2009 Hi, Could you please just change the following line of your code and try again? var chart = new FusionCharts("../Charts/DragNode.swf", "ChartId", "600", "550", "0", "1"); Share this post Link to post Share on other sites
shilpashivapuram Report post Posted May 15, 2009 I tried with even 1 option but it isnt working. I even put on the debug mode, where i can view the XML data and have even the set the settings as mentioned in the earlier link, but still says that the object doesnt support this method. var chart = new FusionCharts("../Charts/DragNode.swf", "ChartId", "600", "550", "1", "1"); Share this post Link to post Share on other sites
aman vishnoi Report post Posted February 17, 2012 Hi Rahul, Can you mail me sample code for drag node chart on my id. [email protected] Thanks Share this post Link to post Share on other sites
aman vishnoi Report post Posted February 17, 2012 I want this in asp.net c# using xml data Share this post Link to post Share on other sites
Swarnam Report post Posted February 17, 2012 Hey, Please refer the forum link for more information: http://forum.fusioncharts.com/topic/10707-executing-html-to-get-powerchart/page__pid__43841#entry43841 Share this post Link to post Share on other sites
aman vishnoi Report post Posted February 22, 2012 Thanks for reply. I have created the fusion chart but i am not getting waiting and save button Share this post Link to post Share on other sites
Guest Sumedh Report post Posted February 22, 2012 Hi, Please refer the post : http://forum.fusioncharts.com/topic/11231-drag-node/#entry43962 Hope this helps. Share this post Link to post Share on other sites