varoon Report post Posted October 17, 2008 hi did any one try loading two dff charts into a single swf ? any idea ? Share this post Link to post Share on other sites
varoon Report post Posted October 17, 2008 sorry just now found a FLA example in your product... Share this post Link to post Share on other sites
varoon Report post Posted October 17, 2008 the provided code is.... // ------------- XML Data for the chart -------------- // //Data for chart 1 var strXML1:String = ""; //Add simple data for demo. strXML1 = strXML1+""; strXML1 = strXML1+""; strXML1 = strXML1+""; strXML1 = strXML1+""; strXML1 = strXML1+""; var xmlData1:XML = new XML(strXML1); // Data for Chart 2 var strXML2:String = ""; //Add simple data for demo. strXML2 = strXML2+""; strXML2 = strXML2+""; strXML2 = strXML2+""; strXML2 = strXML2+""; strXML2 = strXML2+""; var xmlData2:XML = new XML(strXML2); // --------------------------------------------------- // // -------------- Actual Code to create the chart ------------// //Create movie clips required for both the charts var chartContainer1MC:MovieClip = this.createEmptyMovieClip("ChartHolder1", 1); var chartContainer2MC:MovieClip = this.createEmptyMovieClip("ChartHolder2", 2); //Now, instantiate the charts using Constructor function of the chart. var chart1:Column2DChart = new Column2DChart(chartContainer1MC, 1, 380, 325, 20, 15, false, "EN", "noScale"); var chart2:Line2DChart = new Line2DChart(chartContainer2MC, 1, 380, 325, 440, 15, false, "EN", "noScale"); //Convey the XML data to chart. chart1.setXMLData(xmlData1); chart2.setXMLData(xmlData2); //Draw the charts chart1.render(); chart2.render(); //Stop stop(); i need to load external xml data... how do i ??? Share this post Link to post Share on other sites
varoon Report post Posted October 20, 2008 can any one help.. how to load a external swf / fusion chart ??? Share this post Link to post Share on other sites