msherwoo Report post Posted April 16, 2010 I create a chart object when the page gets loaded: var chart1 = new FusionCharts("FusionCharts/MSLine.swf", "chart1Id", "740", "350", "0", "1"); chart1.setTransparent(true); chart1.setDataXML(""); chart1.render("chart1div"); Then after a button click and some ajax the chart gets fed new data like this chartObj.setDataXML(chart_xml); The first time it runs it returns setDataXML is not a function but a 2nd click works just fine. Any suggestions? Share this post Link to post Share on other sites
srividya_sharma Report post Posted April 17, 2010 Hello Could you please try to change this line in your above code: chart1.setDataXML("<chart></chart>"); Hope this helps Srividya Share this post Link to post Share on other sites
msherwoo Report post Posted April 17, 2010 Yes, that was it. Thanks. Share this post Link to post Share on other sites
srividya_sharma Report post Posted April 17, 2010 You are most welcome. Happy FusionCharting ! Srividya Share this post Link to post Share on other sites
Nemo Report post Posted May 9, 2010 srividya_sharma (4/17/2010)Hello Could you please try to change this line in your above code: chart1.setDataXML("<chart></chart>"); Hope this helps Srividya I find that this sometimes leads to "No data to display" message. Is this minimal XML code considered legal (no dataset, etc.)? Share this post Link to post Share on other sites
FusionCharts Support Report post Posted May 9, 2010 Hi, You can always use <chart/> as the minimum valid XML. Share this post Link to post Share on other sites