avernet

Members
  • Content count

    5
  • Joined

  • Last visited

About avernet

  • Rank
    Forum Newbie
  1. chartObj.setDataXML is not a function

    Rajroop, Ah, you found it: I was calling render() every time after calling setDataXML(), and apparently when doing so the chart renders with the initial data. Like you said, render() must be called once, after the initial call to setDataXML(). Alex
  2. chartObj.setDataXML is not a function

    A workaround is to just recreate the FusionCharts object every time I need to update it, instead of reusing it. Is there any downside in recreating the FusionCharts object this way? Alex
  3. chartObj.setDataXML is not a function

    Rajroop, I am not loading the file locally (as in from c:...); I am loading everything, the swf, HTML, and JavaScript, from http://localhost:8080/. Alex
  4. chartObj.setDataXML is not a function

    That was it! I didn't have the RegisterWithJS=1, and in fact didn't even know about it before reading your message . This the call to setDataXML() goes through and the chart "re-draws", but it isn't updated: even if the data I provide is different, I get exactly the same chart. Any reason why this could be happening? Alex
  5. I am using FusionCharts 3.1, and set the XML for the chart with JavaScript with the setDataXML() method. It works fine, and the chart shows as expected. Later on the same page, I call the setDataXML() method again to update the chart, and get the JavaScript error "chartObj.setDataXML is not a function". I added some debug code to FusionChart.js, in "else" part of setDataXML(). The variable chartObj correctly points to the object as expected, but setDataXML() is undefined on that object. Any idea of why this would be the case? Alex