newBieFusionCharts

Members
  • Content count

    18
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by newBieFusionCharts


  1. 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.

     

     

    Hi,

     

    Could you please send us the screenshot of the errors you are getting?

     

    If possible, please send us the entire code to test it from our end.

     

    Awaiting for your reply.

    post-10147-002307700 1301497466_thumb.png

    post-10147-098711600 1301497868_thumb.png


  2. 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.

     

     

    Hi,

     

    Could you please send us the screenshot of the errors you are getting?

     

    If possible, please send us the entire code to test it from our end.

     

    Awaiting for your reply.


  3. 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.


  4. 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!!


  5. 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.


  6. 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.


  7. 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!