xyperxex Report post Posted December 21, 2007 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
Pallav Report post Posted December 21, 2007 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