Sign in to follow this  
flyman686

Why I Can't Get Data From Fusioncharts?

Recommended Posts

hello! I am using the Dragnode of PowerCharts . However ,I encounter a problem that I can't get the data from the chart I create neither in XML or Json method . I just create a DragNode and there is no data in it , then I create the model that I want .And I hope the data can be delivered to a variable, but when I check the variable , there is nothing in data.Here is my code:

function createChart(){

if(dojo.byId("createModel").innerHTML=="start"){

var chart =new FusionCharts( "${basePath}charts/DragNode.swf",

"dragChart", "900", "500", "0", "1" );

chart.setXMLUrl("${basePath}charts/DragNode1.xml");

chart.render("chartarea");

dijit.byId("modelcreation").show();

var data = FusionCharts("dragChart").getXMLData();//why data doesn't contain the item that I create

}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this