Sign in to follow this  
yhadar

why I still dont have "export as xxx" option after right click?

Recommended Posts

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>

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :)

Could you please check and update your chart to the latest version(v3.1.1).

Ref:-http://www.fusioncharts.com/PUC

Edited by Guest

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this