Ayan Pal

Moderators
  • Content count

    106
  • Joined

  • Last visited

Posts posted by Ayan Pal


  1. hi lmhart

     

    your code is right but please check that the paths are written in the code are right or not..

     

    e.g.

     

    include("../class/FusionCharts_Gen.php");

     

    means one directory back from your php page's directory then 'class' folder which contain FusionCharts_Gen.php file. make it sure that the path is right...

     

     

     

    check this for all.....

     

    include("../class/FusionCharts_Gen.php");

     

    include("../class/DBConn.php");

     

     

     

    $FC->setSwfPath("../FusionCharts/FCF_Pie2D.swf");


  2. hi.

     

    please update your code a little bit.....

     

     

     

    write

     

    myChart.setDataURL("realyer.php?XML=www.anotherdomain.com/myXML.xml");

     

    **omit the http:// in the chart dataURL

     

     

     

    update relayar.php page alse as follows

     

    <?php

     

    $xmlDoc = new DOMDocument();

     

    $xmlDoc->load('http://'.$_GET["XML"]);

     

    header('Content-type: text/xml');

     

    echo $xmlDoc->saveXML();

     

    ?>

     

     

     

     

     

    fusionchatrs block urls containing ':' that's why it's blocking the the url supplyed in the dataURL


  3. hi,

     

     

     

    FC_Rendered() function is called when the chart is rendered.but if you set animation=1 then animation takes some times after the chart has rendered. As you called the export function after the chart is rendered so its export the chart before the chart's animation is completed. to solv this you can use a time delay by using setTimeout().

     

    the code may be as follows-

     

     

     

    function CheckRender(DomID) {

     

     

     

    //If this Properties are True that means the Chart Became Updated

     

     

     

    if(chartObjects[DomID] && chartObjects[DomID].hasRendered && chartObjects[DomID].hasRendered()){

     

     

     

    window.clearInterval(intervlId[DomID]);

     

     

     

    //exporting the chart

     

     

     

    var t=setTimeout("chartObjects[DomID].exportChart({exportFileName: '/files/'+JPGfile[(DomID.charAt((DomID.length)-1))-1] }); // ( { exportAtClient: '1'} )",500)

     

     

     

    }

     

     

     

     

     

    **adjust the time(500) in ms as per you needed