• Content count

  • Joined

  • Last visited

Posts posted by mssjdb

  1. am using fusion charts. and am exporting graphs to server side as pngs. here i have more than 20 graphs. now have to run another file if exporting was completed. it is taking nearly 4 min to complete export.

    for this am using this technique How do I configure FusionCharts export component to invoke a callback JavaScript method, when the chart has been saved by user?

    but am getting alert with error like FusionChartsExport: object::FusionCharts was not found. Verify script inclusions.

    How i can overcome from this.

  2. Hi,


    From the "index.php" file of your sample, it seems you have used same chart ID multiple times while creating FusionCharts constructor in JavaScript.


    So, could you please provide unique name to each chart IDs for all the charts in a page?


    Ref. wrong Code:

    var chart1 = new FusionCharts("FusionCharts/MSColumn3D.swf", "chart1Id", "600", "400", "0", "1");
    var chart2 = new FusionCharts("FusionCharts/MSColumn3D.swf", "chart1Id", "600", "400", "0", "1");


    Ref. Correct Code:

    var chart1 = new FusionCharts("FusionCharts/MSColumn3D.swf", "chart1Id", "600", "400", "0", "1");
    var chart2 = new FusionCharts("FusionCharts/MSColumn3D.swf", "chart2Id", "600", "400", "0", "1");


    Also, it seems "G2.xml" is not present in the sample folder, which is used to render chart2, so commented the lines of code for creating chart2.


    After making the above changes, we have tested your sample, and it is successfully exporting all the chart images to server successfully.


    Please find the modified sample attached here, for your reference.


    Hope this helps!


    thanks for your reply.


    i am able to upload these images in jpeg format. but i need format like png.

    please help me out.


  3. ...


    The chart does NOT get automatically exported server-side, unless you explicitly write JavaScript codes to do the same. I have attached a demo application that automatically starts exporting four charts upon page load.


    Hope this is useful.


    Thanks for your help.


    i am working with your folder. i want to save fusion charts as pngs, but i am not getting. Please help me. Attaching folder here. please explain if you changed any code here.




  4. I am trying to save my fusion chats as png on server side. i am using php/mysql. i want to export nearly 10 images of fusion charts at a time. i was unable to save at least one graph on server. how i can do this?


    i tried with enter link description here can you give me an example?


    while trying to save graphs on client side. i was succeeded up to save one graph. but i am unable to save more than one graph. i am not getting according to server side at least one graph.



  5. Hi,


    I am trying to save graphs on server side. i was succeeded up to save one graph. but i am unable to save more graphs. how it can be ?



    my code is


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- FusionCharts Core JavaScript Object -->
    <script type="text/javascript" src="FusionCharts/FusionCharts.js"></script>
    <script type="text/javascript">
    var totalCharts = 2;
    function exportCharts(exportType)
    for( var i = 0; i < totalCharts; i++ ) {
    var num = i+1;
    var id = "chart"+num+"Id";
    function exportchart(exportType,id)
    var chart = FusionCharts(id);
    // Now, we proceed with exporting only if chart has finished rendering.
    if (chart.hasRendered() != true)
    	alert("Please wait for the chart to finish rendering, before you can invoke exporting");
    // call exporting function
    chart.exportChart( {exportFormat: exportType} );
         <p align="center">
           <input type="button" class="button" value="Export as PNG" onclick="exportCharts('PNG')" id="exportButtonPNG" />
       <div >
         <div id="average" style="text-align:center">Loading Chart... </div>
       <div id="serverSideChart" style="text-align:center">Loading Chart... </div>
     <script type="text/javascript" >
    // Render the chart (See documentation for explanation of the codes below)
    //echo renderChart("FusionCharts/MSColumn3D.swf", "", $strXML3, "average", 1100, 350);
    var chart2 = new FusionCharts("FusionCharts/MSColumn3D.swf", "chart1Id", "600", "400", "0", "1");		   			
    var chart1 = new FusionCharts("FusionCharts/MSColumn3D.swf", "chart2Id", "600", "400", "0", "1");		   			
    <!-- Google Analytics Tracker Code Starts -->
    <script type="text/javascript">
    // analytics
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost 
    + "' type='text/javascript'%3E%3C/script%3E"));
    <script type="text/javascript">
    if (typeof(_gat) == "object") {
    var pageTracker = _gat._getTracker("UA-215295-3"); pageTracker._initData(); pageTracker._trackPageview();


  6. I am trying to convert my chart as a jpg. i am getting option save as jpeg, png, pdf. But the problem is after selecting options (like jpeg etc) i am getting a new window "http://localhost/Dashboard9/FusionCharts/FCExporter.php" with


    DOMId=<br style="font-family: 'Times New Roman'; font-size: medium;">height=0<br style="font-family: 'Times New Roman'; font-size: medium;">width=0<br style="font-family: 'Times New Roman'; font-size: medium;">fileName=<br style="font-family: 'Times New Roman'; font-size: medium;">statusMessage= Export Resource not found.<br style="font-family: 'Times New Roman'; font-size: medium;">statusCode=0



    I have placed FCExporter.php at "http://localhost/Dashboard9/FusionCharts" . My internet connection is on while doing this.


    Using code like




    <graph caption='Average Score' subcaption='$myCaption' divlinecolor='F47E10' numdivlines='3' showAreaBorder='1' areaBorderColor='000000' numberPrefix='' showNames='1' numVDivLines='29' vDivLineAlpha='30' yAxisName='Average Score' formatNumberScale='1' rotateNames='1' decimals='1' decimalPrecision='1' exportEnabled='1' 
    exportHandler='http://localhost/Dashboard9/FusionCharts/FCExporter.php' exportAtClient='0' exportAction='download' exportTargetWindow='_blank' exportFileName='MyFileName'> 



    Nothing was changed on FCExporter.php

    what is the problem, i am not getting. Please help me.