minkey

Members
  • Content count

    8
  • Joined

  • Last visited

About minkey

  • Rank
    Forum Newbie
  1. I like the Multi series stacked column chart. I need one thats rotated, like the bar charts. The X axis categories are long texts and dont really fit well on columnar form.
  2. setDataXML cannot be called

    figured it out, thanks
  3. setDataXML cannot be called

    Ah, that was my problem, that fixed it, thanks. Now I have another question When i call the chart through Javascript like that, how do i set:
  4. setDataXML cannot be called

    The init function is initializing the chart with blank data. I try to put data in the chart when its loaded with the FC_Rendered function. Isnt FC_Rendered called automatically after the chart is loaded? function init(){ var myChart = new FusionCharts("${staticServer}/Charts/Doughnut2D.swf", "myChartId", "900", "300", "0", "1"); myChart.setDataXML(""); myChart.render("chartdiv"); } YAHOO.util.Event.addListener(window, "load", init); function FC_Rendered(domId){ if (domId=="chartdiv"){ var chartObj = getChartFromId(domId); chartObj.setDataXML(""); } return true; }
  5. setDataXML cannot be called

    Ive don it this way, I still get the error, this is embedded in the JSP so its not a static server error. After init it called, the chart is rendered with No Data. When FC_Rendered is called, I get the chartObj error. function init(){ var myChart = new FusionCharts("${staticServer}/Charts/Doughnut2D.swf", "myChartId", "900", "300", "0", "1"); myChart.setDataXML(""); myChart.render("chartdiv"); } YAHOO.util.Event.addListener(window, "load", init); function FC_Rendered(domId){ if (domId=="chartdiv"){ var chartObj = getChartFromId(domId); chartObj.setDataXML(""); } return true; }
  6. setDataXML cannot be called

    Im doing all those except the registerWithJS flag set to 1 Im following the examples you have that change XML with javacsript and I didnt see that flag being set anywhere.
  7. setDataXML cannot be called

    the example works when run from a webserver. Unfortunately, I still have the problem when I try to populate with my actual web page. I have a JBOSS server running struts. The javascript on the struts page fills data dynamically, but I always get teh cartObj has no properties when I fill it. I have a page, that initializes the chart with blank data. I use Yahoo YUI widgets which calls the init function after the page is loaded. In the init function, it runs a dwr call to get data. when data come back, i use setDataXML to fill the chart. (Im just using a set string to populate to test). I still get chartObj has no properties. I have something like this: function init(){ setTimeout("Budget.getChartData(getChartDataReturn)",1500); } YAHOO.util.Event.addListener(window, "load", init); function getChartDataReturn(data){ if(data != null){ var chartObj = getChartFromId("chartdiv"); chartObj.setDataXML(""); } } var myChart = new FusionCharts("${staticServer}/Charts/Doughnut2D.swf", "myChartId", "900", "300", "0", "0"); myChart.setDataXML(""); myChart.render("chartdiv");
  8. setDataXML cannot be called

    Im getting a similar problem, and its coming from the example from the download. From CodeJavaScriptBasicsChangeDataXML.html it errors out in Firefox and IE. When you try to change the data, nothing happens and in firefox the error chartObj.setDataXML is not a function is returned. It errors out in IE also. Ive tried it with the developer package and the evaluation package and I get the error in both packages.