David Song

Members
  • Content count

    2
  • Joined

  • Last visited

Posts posted by David Song


  1. Hi all,

    I would add FusionCharts widgets to Eclipse RAP customer widgets. First I create a div element and then add a Fusionchart to the div element, but the when I render the fc chart, fc can not find the div element, I know at this moment the div is not added or render to the browser really. so I want to know when the div element is rendered or fc chart is ready, how to do it?

     

    post-41905-0-03341800-1366209554_thumb.png

     

     

    Thanks very much

    David


  2. Hi,

    I see the code in doc like below,

    var myChart = new FusionCharts( "FusionCharts/Column3D.swf", "myChartId", "400", "300", "0", "1" );
    myChart.setXMLUrl("Data.xml");
    myChart.render("chartContainer");
    function myChartListener(eventObject, argumentsObject) {
           alert( eventObject.sender.id + " has completed chart drawing" );
    }
    FusionCharts("myChartId").addEventListener ("DrawComplete" , myChartListener );
    

    the event is added after the chart rendered, i want to decide if the data loaded then the chart begins to render, or how to know fusionchart object is insanced or not?

     

    Thanks

    David