export - Showing 2 graph exported from fusion charts -


i'm crazy trying show 2 graph fusion charts. 2 graph succeed save server. have problem show them in html. if 1 graph no problem me. html:

<script type="text/javascript">function fc_exported(objrtn){  var namafile;           if (objrtn.statuscode=="1"){ namafile=objrtn.filename; //alert("the chart saved on server. file can accessed " + objrtn.filename); }else{ //alert("the chart not saved on server. there error. description : " + objrtn.statusmessage); } document.getelementbyid('imgdiv1').innerhtml="<img src='"+objrtn.filename+"'><br>";            document.getelementbyid('imgdiv2').innerhtml="<img src='"+objrtn.filename+"'><br>";            document.getelementbyid("chartdiv1").style.display='none'; document.getelementbyid("chartdiv2").style.display='none'; } </script>    </head> <body>   <div id="chartdiv1" style="text-align:center">loading chart... </div><div id="chartdiv2" style="text-align:center">loading chart... </div> <script type="text/javascript"> var chart2 = new fusioncharts("charts/mscolumn3d_new.swf", "chart1id", "600", "400", "0", "1");                    chart2.setxmlurl("data.xml"); chart2.render("chartdiv1"); chart2.addeventlistener("rendered", function () { fusioncharts("chart1id").exportchart();  } );  var chart1 = new fusioncharts("charts/mscolumn3d_new.swf", "chart2id", "600", "400", "0", "1");chart1.setxmlurl("test.xml"); chart1.render("chartdiv2"); chart1.addeventlistener("rendered", function () { fusioncharts("chart2id").exportchart();  } );      </script> <div id="imgdiv1" align="center"></div><div id="imgdiv2" align="center"></div> 

and these xml :

<?xml version='1.0'?> <graph bgcolor='e6f2f6' palette='2' caption='anggaran jenis tahun sebelumnya' subcaption=' ' xaxisname='uraian' decimalseparator=',' thousandseparator='.' yaxisname='nilai (dalam rupiah)' showvalues='0' decimals='0' formatnumberscale='0' showpercentintooltip='1' showpercentvalues='0' exportshowmenuitem='0' exportenabled='1' exportatclient='0' exportaction='save' exporthandler='exporthandlers/php/fcexporter.php'> <categories font='arial' fontsize='11' fontcolor='000000'> <category name='4.1 ' /> <category name='4.2 ' /> <category name='4.3 ' /> <category name='5.1 ' /> <category name='5.2 ' /> <category name='6.1 ' /> <category name='6.2 ' /> </categories> <dataset seriesname='tahun 2013' color='2ad62a'> <set value='26670448766000' /> <set value='9248954435000' /> <set value='5605933431000' /> <set value='14582865662703' /> <set value='30993463301297' /> <set value='8454553000000' /> <set value='4403560668000' /> </dataset> <dataset seriesname='tahun 2012' color='f1683c'> <set value='20523433370351' /> <set value='9776877857000' /> <set value='3349700731266' /> <set value='12552587002387' /> <set value='25814093071454' /> <set value='7703218490508' /> <set value='2986550375284' /> </dataset> </graph>   <?xml version='1.0'?> <graph bgcolor='e6f2f6' palette='2' caption='anggaran kelompok' subcaption=' ' xaxisname='uraian' decimalseparator=',' thousandseparator='.' yaxisname='nilai (dalam rupiah)' showvalues='0' decimals='0' formatnumberscale='0' showpercentintooltip='1' showpercentvalues='0' exportshowmenuitem='0' exportenabled='1' exportatclient='0' exportaction='save' exporthandler='exporthandlers/php/fcexporter.php'><categories font='arial' fontsize='11' fontcolor='000000'> <category name='4.1 ' /> <category name='4.2 ' /> <category name='4.3 ' /> <category name='5.1 ' /> <category name='5.2 ' /> <category name='6.1 ' /> <category name='6.2 ' /> </categories> <dataset seriesname='tahun 2013' color='2ad62a'> <set value='26670448766000' /> <set value='9248954435000' /> <set value='5605933431000' /> <set value='14582865662703' /> <set value='30993463301297' /> <set value='8454553000000' /> <set value='4403560668000' /> </dataset> <dataset seriesname='tahun 2012' color='f1683c'> <set value='20523433370351' /> <set value='9776877857000' /> <set value='3349700731266' /> <set value='12552587002387' /> <set value='25814093071454' /> <set value='7703218490508' /> <set value='2986550375284' /> </dataset> </graph> 

how 2 file name exported image?

thanks

if export more 1 chart appearing in same page, batch exporting of chart supported while rendering in flash mode.

for demo, please refer :http://docs.fusioncharts.com/charts/code/exportchartsamples/batchexport/batchmodeonly.html


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -