Sign in to follow this  
Pallav

Dynamic Multi-axis Line Chart

Recommended Posts

Hi!

 

 

 

I was just wondering if I could use javascript along with Multi-axis Line Chart to create a dynamic line graph.

 

 

 

I have already read the tutorial from http://www.fusioncharts.com/docs/. However when I tried to use these two lines of codes:

 

 

 

var charObj = getChartFromId("chartId");

 

charObj.setDataXML(somexmlstringhere);

 

 

 

Firefox displays an error message that says setDataXML is not a function. I have included the correct path to the FusionCharts.js. The chart would be loaded correctly the first time, however when the button that would change the values dynamically is clicked, nothing happens..

 

 

 

If you have any sample code that uses multi-axis line chart, i think that it would be a big help.

 

 

 

Thanks!

Share this post


Link to post
Share on other sites

Hi,

 

 

 

When you need to update the data for a chart second time (not during initialization), you first need to get the ID of the chart using getChartFromID() method and call the setDataXML() method on that.

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