newBieFusionCharts

Members
  • Content count

    18
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by newBieFusionCharts

  1. A web developer with over 4 years of experience working with Java and J2EE technologies. I am available for any integration work with Fusion Charts, J2EE, JSP and MySQL. Please send me private query if there is any such project available.
  2. Printing Charts On Client Side

    Hello, I am using Fusion charts v3.2. When I try to export the charts on client side, the first time it works fine. However, when I try to re-export the charts after some processing of data on the page or just hit the export button again, the progress bar appears on the charts and then after completing 100% it disappears without saving anything. . Its a critical need. Please see. Thanks.
  3. Printing Charts On Client Side

    I got into another issue. When I save fusion charts and then if I switch the window tab and then come back then the charts aren't there, all I get is blank page. The only way I could get charts back is to refresh the page or re-render the charts. Is there a way around. Please help.
  4. Printing Charts On Client Side

    Fusion Chart rocks!! Thank you.
  5. Printing Charts On Client Side

    Hi Angie, Please find attached the screen shot and code sample facing the issue. The first time I save the charts, it will save the charts properly. However, If you try to click on the save charts again, it will not create the exporter object. After tracing the DOM, it says "chartObject-1" already exists, renaming to "chartObject-1". Please help at the earliest possible convenience. For some reason I am unable to upload the jsp file in the attachment. So, please find the code below: <script type="text/javascript" src=FusionCharts/FusionCharts.js"></script> <script type="text/javascript" src=FusionCharts/FusionChartsDOM.js"></script> <script language="JavaScript" src="FusionCharts/FusionChartsExportComponent.js"></script> <html> <script> <!-- function beginExport() { var exportUrl = "pages/FusionCharts/FCExporter.swf" ; var myExportComponent = new FusionChartsExportObject("fcExporterBatch", exportUrl); document.getElementById("saveCharts").style.display = 'block'; document.getElementById("saveCharts").style.zIndex = 100; // Get Ids of all the pages rendered on the page from server var chartIds =["testChart"]; //Add the charts to queue. The charts are referred to by their DOM Id. for(var i = 0;i < chartIds.length;i++) { if(chartIds != null || chartIds!="") myExportComponent.sourceCharts = "testChart"; } // Export Component Attributes //Set the mode as full mode myExportComponent.componentAttributes.fullMode ='1'; /* Set saving mode as both. Allows users to download individual charts as well as download all charts as a single file. */ myExportComponent.componentAttributes.saveMode ='both'; //Show allowed export format drop-down myExportComponent.componentAttributes.showAllowedTypes = '1'; /* Cosmetics */ //Width and height myExportComponent.componentAttributes.width = '350'; myExportComponent.componentAttributes.height = '140'; //Message - caption of export component myExportComponent.componentAttributes.showMessage = '1'; myExportComponent.componentAttributes.message = 'Save the charts'; //Render the exporter SWF in our DIV saveCharts myExportComponent.Render("saveCharts"); myExportComponent.BeginExport(); }; /** * Callback function after single chart is exported. * * @param objRtn id of the chart exported */ function FC_Exported(objRtn) { // If successful if (objRtn.statusCode == "1"){ document.getElementById("saveCharts").style.display = 'none'; document.getElementById("saveCharts").style.zIndex = -1; } else{ alert("There was an error saving the chart. Error message: " + objRtn.statusMessage + ". Its DOM Id is " + objRtn.DOMId); } } /** * This event is invoked when the user clicked on Save-All button * and all the charts were saved on user's disk as a single file. * * @param objRtn id of the chart exported */ function FC_BatchExported(objRtn) { // If success if (objRtn.statusCode == "1"){ document.getElementById("saveCharts").style.display = 'none'; document.getElementById("saveCharts").style.zIndex = -1; } else{ alert("There was an error saving the chart. Error message: " + objRtn.statusMessage); } }; //--> </script> <body> <div id = 'control'> <input type='button' value = "Save Charts" onClick='beginExport();'></input> </div> <div id='test'></div> <div id='saveCharts'></div> <script LANGUAGE="JavaScript"> var xml = "<chart showBorder='0' caption='Summary' chartLeftMargin='-20' chartRightMargin='2' chartTopMargin='2' pieRadius='60' exportHandler='fcExporterBatch' bgColor='#eef0f2' chartBottomMargin='4' manageLabelOverflow='1' skipOverlapLabels='0' showPercentValues='0' showPercentInToolTip='0' radius3D='45' startingAngle ='0' exportEnabled='1' enableSmartLabels='1' slicingDistance ='10' exportAtClient='1' exportHandler='fcExporterBatch' showCanvasBorder='0'><set value='14247' label='Male'/><set value='1874' label='Female'/></chart>"; var chart1 = new FusionCharts("FusionCharts/Pie2D.swf", 'testChart', "320", "200", "0", "1"); chart1.setDataXML(xml); chart1.render('test'); </script> </body> </html> Thank you.
  6. Printing Charts On Client Side

    Hi Angie, Please find attached the screen shot and code sample facing the issue. The first time I save the charts, it will save the charts properly. However, If you try to click on the save charts again, it will not create the exporter object. After tracing the DOM, it says "chartObject-1" already exists, renaming to "chartObject-1". Please help at the earliest possible convenience. For some reason I am unable to upload the jsp file in the attachment. So, please find the code below: <script type="text/javascript" src=FusionCharts/FusionCharts.js"></script> <script type="text/javascript" src=FusionCharts/FusionChartsDOM.js"></script> <script language="JavaScript" src="FusionCharts/FusionChartsExportComponent.js"></script> <html> <script> <!-- function beginExport() { var exportUrl = "pages/FusionCharts/FCExporter.swf" ; var myExportComponent = new FusionChartsExportObject("fcExporterBatch", exportUrl); document.getElementById("saveCharts").style.display = 'block'; document.getElementById("saveCharts").style.zIndex = 100; // Get Ids of all the pages rendered on the page from server var chartIds =["testChart"]; //Add the charts to queue. The charts are referred to by their DOM Id. for(var i = 0;i < chartIds.length;i++) { if(chartIds != null || chartIds!="") myExportComponent.sourceCharts = "testChart"; } // Export Component Attributes //Set the mode as full mode myExportComponent.componentAttributes.fullMode ='1'; /* Set saving mode as both. Allows users to download individual charts as well as download all charts as a single file. */ myExportComponent.componentAttributes.saveMode ='both'; //Show allowed export format drop-down myExportComponent.componentAttributes.showAllowedTypes = '1'; /* Cosmetics */ //Width and height myExportComponent.componentAttributes.width = '350'; myExportComponent.componentAttributes.height = '140'; //Message - caption of export component myExportComponent.componentAttributes.showMessage = '1'; myExportComponent.componentAttributes.message = 'Save the charts'; //Render the exporter SWF in our DIV saveCharts myExportComponent.Render("saveCharts"); myExportComponent.BeginExport(); }; /** * Callback function after single chart is exported. * * @param objRtn id of the chart exported */ function FC_Exported(objRtn) { // If successful if (objRtn.statusCode == "1"){ document.getElementById("saveCharts").style.display = 'none'; document.getElementById("saveCharts").style.zIndex = -1; } else{ alert("There was an error saving the chart. Error message: " + objRtn.statusMessage + ". Its DOM Id is " + objRtn.DOMId); } } /** * This event is invoked when the user clicked on Save-All button * and all the charts were saved on user's disk as a single file. * * @param objRtn id of the chart exported */ function FC_BatchExported(objRtn) { // If success if (objRtn.statusCode == "1"){ document.getElementById("saveCharts").style.display = 'none'; document.getElementById("saveCharts").style.zIndex = -1; } else{ alert("There was an error saving the chart. Error message: " + objRtn.statusMessage); } }; //--> </script> <body> <div id = 'control'> <input type='button' value = "Save Charts" onClick='beginExport();'></input> </div> <div id='test'></div> <div id='saveCharts'></div> <script LANGUAGE="JavaScript"> var xml = "<chart showBorder='0' caption='Summary' chartLeftMargin='-20' chartRightMargin='2' chartTopMargin='2' pieRadius='60' exportHandler='fcExporterBatch' bgColor='#eef0f2' chartBottomMargin='4' manageLabelOverflow='1' skipOverlapLabels='0' showPercentValues='0' showPercentInToolTip='0' radius3D='45' startingAngle ='0' exportEnabled='1' enableSmartLabels='1' slicingDistance ='10' exportAtClient='1' exportHandler='fcExporterBatch' showCanvasBorder='0'><set value='14247' label='Male'/><set value='1874' label='Female'/></chart>"; var chart1 = new FusionCharts("FusionCharts/Pie2D.swf", 'testChart', "320", "200", "0", "1"); chart1.setDataXML(xml); chart1.render('test'); </script> </body> </html> Thank you.
  7. Script Hangs On Right Click

    I am using Fusion Charts v3.2 on my web page, as soon as I right click on one of my several charts the page stops working and I have to forcefully kill the script. Its supposed to give either context menu or basic right click menu. Also, the pie charts do not show tool tips or slice out the clicked area. Waiting for reply!!
  8. Script Hangs On Right Click

    The site is still under production. So, please find the attached html file with the issue. Look forward to your reply. Thanks. FusionChartTest.html
  9. Donut Chart

    Hi, I want to plot a donut chart with two circles(Inner and Outer) somewhat like highcharts' donut chart. Is it possible with Fusion Charts. Waiting for your reply! Thank you.
  10. Donut Chart

    Hi, Thanks for the reply. But I still don't see how to plot 2 circles in one chart. eg. Outer circle showing values in 2009 and Inner one showing values in 2010. Looking forward to your reply. Thank you.
  11. Legen Interactivity

    Hi, I want to implement the reverse effect of current implementation of Fusion Charts' legend interactivity. In other words, when we click on a legend item, I want to hide the rest of the series in a MSColumn3d chart Is it possible with the current version of FusionCharts v3.2 evolution?? If not, Can I get a copy of FusionCharts.js file so that I could write my own events. Awaiting for your reply!! Thank you.
  12. Legen Interactivity

    Thanks, got it working.
  13. Chart Onclick Highlighting Event

    Hi, I am using Multi series Stacked column chart and they are working great. However, I want to highlight the stack area clicked (not the whole column) so that user could know what data is being shown in detail by the drill down chart. In other words, I am trying to relate the drill down chart and the base chart. Is is possible with fusion charts!! Waiting.. Thanks.
  14. Legen Interactivity

    Hi, Can I get an uncompressed copy of Fusion Charts.js! Thanks.
  15. Chart Onclick Highlighting Event

    Thanks for the reply! I got it with your suggested method.
  16. Interactive Legends

    I am trying to get my fusion charts's legend to show the toggling effect for the data plotted. I am trying to do it using "interactiveLegend = '1' " chart attribute but its not working. Am I missing something? <chart caption='Monthly Report' showBorder='0' formatNumberScale='0' showValues='0' xAxisName='Month' yAxisName='Sales' skipOverlapLabels='0' showPercentValues='0' showPercentInToolTip='0' interactiveLegend = '1' > </chart> Please help. Thanks!
  17. Interactive Legends

    Its working now! Thanks
  18. Interactive Legends

    I am using v3.2. Awaiting your reply! Thanks.