james555

Members
  • Content count

    7
  • Joined

  • Last visited

Posts posted by james555


  1. My charts display and render just fine in chrome and IE... and I have the FC_rendered function running to auto save the image on the server using chart.exportChart({ exportFormat:'jpg' });

     

    This works fine in Chrome and IE with the save box automatically coming up and saving the jpg image on the server. However in Firefox it doesn't always save each chart on the page or doesn't save at all sometimes. Is there a known bug with displaying multiple charts on a page and having them save on the server automatically in firefox? The same code works fine for IE and Chrome.

     

    My firefox browser is running flash 10,0,12,36 ... and if I right click to save it works fine... or open the individual charts in their own tab/window they save fine.

     

     

    Any ideas?


  2. When a chart is generated it is not saving the image on the server automatically. I have to right click and save as jpeg and then it'll save in the proper folder on the server. Why is that? I need the charts to automatically save as soon as they are generated.

     

    Here is the snippet of my chart code:

     

    <script LANGUAGE="Javascript" SRC="FusionCharts/FusionCharts.js"></SCRIPT>
        <script type="text/javascript" src="FusionCharts/FusionChartsExportComponent.js"></script>
    
    $strXML = "<chart caption='' numberPrefix=''  forceDecimals = '1' decimals = '2' formatNumberScale='0' exportFileName='$dr$mynum' exportEnabled='1' exportAtClient='0' exportAction='save' exportHandler='http://myurl.com/FusionCharts/FCExporter.php' >";
    
    echo renderChart("FusionCharts/Column3D.swf", "", $strXML, "productSales", 635, 310, false, false);
    

     

    Works great other than automatically saving on server as jpg image.

     

     

     

    Is there another setting I should use? Server permissions seem to be fine as the right click save works fine on the web server. Please advise asap.


  3. shamasis (9/17/2009)
    ...

     

     

     

    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.

     

     

     

    I was able to get your version working just fine with the same export file settings I'm using, yet my script will not render and save automatically like yours.

     

     

     

    Do you have a simpler version of this for just 1 chart and not 4 at a time merging the files, etc. Just something stripped down and easy to understand?

     

     

     

    Thank you!!


  4. Like I said, it saves to the server if I right click and save as.... but won't do it server-side. I'm a bit unclear on why I have to have an xml file on the server to render using the javascript example. Can't I stream it like I do with the renderChart function?

     

     

     

    Here is the render code I'm using:

     

     

     

    Trying both:

     

     

    $strXML = "";

     

    //Convert data to XML and append

     

    foreach ($final as $arSubData)

     

    $strXML .= "";

     

    //close element

     

    $strXML .= "";

     

     

     

    //echo $strXML;

     

     

     

    //Create the chart - Column 3D Chart with data contained in strXML

     

    echo renderChart("FusionCharts/Column3D.swf", "", $strXML, "productSales", 600, 300, false, false);

     

     

     

    ?>

     

    The chart will appear within this DIV. This text will be replaced by the chart.

     

     

    //Create the chart. Make sure registerWithJS is set to 1, else callback cannot happen.

     

    var myChart = new FusionCharts("FusionCharts/Column3D.swf", "test", "myChartId", "600", "300", "0", "1");

     

    myChart.setDataURL("http://myurl/tmp/chart.xml");

     

    myChart.render("chartdiv");

     

     

     

     

     

    and here's the javascript:

     

     

    include("FusionCharts/FusionCharts.php");

     

    ?>

     

     

     

    //Callback handler method which is invoked after the chart has saved image on server.

     

    function FC_Exported(objRtn){

     

    if (objRtn.statusCode=="1"){

     

    alert("The chart was successfully saved on server. The file can be accessed from " + objRtn.fileName);

     

    }else{

     

    alert("The chart could not be saved on server. There was an error. Description : " + objRtn.statusMessage);

     

    }

     

    }

     

     

     

    both charts come up fine... although I don't like js version where I have to specifiy an xml file on the server ???

     

     

     

    So I see both charts but why doesn't javascript kick in to write the file to the server? Or is there a better way with PHP?

     

     

     

    I'm testing the trial version and really want to buy but this is bad if I can't easily save to the server like other chart components. Please advise.