David Song Report post Posted April 17, 2013 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 Share this post Link to post Share on other sites
Guest Sumedh Report post Posted April 18, 2013 Hi David, Welcome to FusionCharts Forum! If you want to perform some operation before rendering the chart, then you can use initialized event. Each event sends parameters to event listener functions. "Initialized" event is raised when an instance of FusionCharts JavaScript class is initialized. This happens prior to data loading and chart creation events. For more information, please refer the following link: http://docs.fusioncharts.com/charts/contents/?JavaScript/API/Events.html Hope this helps! Share this post Link to post Share on other sites