Sign in to follow this  
msherwoo

setDataXML works the 2nd time it's called

Recommended Posts

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 (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

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