yhadar

Members
  • Content count

    3
  • Joined

  • Last visited

About yhadar

  • Rank
    Forum Newbie
  1. worked like charm. thank you very much!
  2. hi, i'm sorry, i didnt mention that i'm using the evaluation edition still. it works in a multiline graph (MSLine.swf) but not in the 3D bars (Column3D.swf). i have downloaded the latest version (http://www.fusioncharts.com/Downloads/Evals/FusionCharts_Evaluation.zip) should it work? thank you!!
  3. Hi, i'm trying to client-side export teh chart to image but right click doesn't show this option ... must be simple but i'm missing it..... :ermm: php code is: <?php include("/srv/www/htdocs/fushion/FusionCharts/FusionCharts.php"); include("/srv/www/htdocs/fushion/FusionCharts/Connection_inc.php"); ?> <HTML> <HEAD> <TITLE>CMCC Indicators Panel</TITLE> <SCRIPT LANGUAGE="Javascript" SRC="/fushion/FusionCharts/FusionCharts.js"></SCRIPT> <SCRIPT LANGUAGE="Javascript" SRC="/fushion/FusionCharts/FusionChartsExportComponent.js"></SCRIPT> </HEAD> <BODY> <?php $chart="Column3D.swf"; if ($_POST['chart']) {$chart=$_POST['chart'];} $ww=4; if($_POST['ww']){$ww=$_POST['ww'];} //Connect to the DB $link = connectToDB(); //Generate the chart element $strXML = "<chart caption='Alerts Per Site For $ww Weeks Ago' subCaption='' pieSliceDepth='30' showBorder='1' formatNumberScale='0' numberSuffix=' Alerts' exportEnabled='1' exportAtClient='1' exportHandler='fcExporter1'>"; $strQuery="SELECT site,COUNT(mc_ueid) AS cnt FROM all_open WHERE TIMESTAMPDIFF(week,date_reception,NOW()) <=$ww GROUP BY site ORDER BY cnt"; $result = mysql_query($strQuery) or die(mysql_error()); if ($result) { while($ors = mysql_fetch_array($result)) { $strXML .="<set label='" . $ors['site'] . "' value='" . $ors['cnt'] . "' link='" . urlencode("Detailed.php?site=" .$ors['site'] . "&ww=" .$ww ."&chart=" .$chart )."'/>"; } } mysql_close($link); //Finally, close <chart> element $strXML .="</chart>"; echo renderChart("/fushion/FusionCharts/$chart", "", $strXML, "mc", 800, 400, false, true); $strXMLipro = exec('/srv/www/htdocs/fushion/ipro2xml.pl'); echo "<BR><BR><BR>"; echo renderChart("/fushion/FusionCharts/MSLine.swf", "", $strXMLipro, "ipro", 800, 400, false, true); ?> <div id="fcexpDiv" align="center">FusionCharts Export Handler Component</div> <script type="text/javascript"> var myExportComponent = new FusionChartsExportObject("fcExporter1", "/fushion/FusionCharts/FCExporter.swf"); myExportComponent.Render("fcexpDiv"); </script> </BODY> </HTML>