Hello,
ive been trying really hard to get fusioncharts to popup a jpg to save a chart, ive enabled the exports and i get the save as jpg button, it says capturing data and gets to 100% then nothing...
I have the "waiting" in the div there too.. it doesnt change. Here is my code im using everything works apart from the save as.
hope you can help
regards
Oliew
<?php include("FusionCharts.php") ?>
<script language="JavaScript" src="FusionCharts.js" type="text/javascript"></script>
<script language="JavaScript" src="FusionChartsExportComponent.js" type="text/javascript"></script>
<? php
$strXML = "<chart caption='Near " . $company_name . "' subcaption='For 2009' xAxisName='ID No.' yAxisName='Number of Near Misses' shownames='1' showvalues='1' showSum='1' decimals='0' useRoundEdges='1' exportEnabled='1' exportHandler='fcExporter_' registerWithJS='1' exportAtClient='1' exportFormats='JPEG=Save as JPEG' >";
$strXML .= "<categories>";
$strXML .= "<category label='01' /> ";
$strXML .= "<category label='02' /> ";
$strXML .= "</categories>";
$strXML .= "<dataset seriesName='" . $company_name . " Near ' color='F6BD0F' >";
$strXML .= " <set value='" . $NMCC_ID01 . "' />";
$strXML .= " <set value='" . $NMCC_ID02 . "' />";
$strXML .= "</dataset>";
$strXML .= " <dataset seriesName='Near ' color='1c6c73'>";
$strXML .= " <set value='" . $ALL_NMCC_ID01 . "' />";
$strXML .= " <set value='" . $ALL_NMCC_ID02 . "' />";
$strXML .= " </dataset>";
//Close <chart> element
$strXML .= "</chart>";
echo renderChart("MSColumn2D.swf", "", $strXML, "Sales", 920, 400, false, false);
?>
<div id="fcexpDiv" align="center">FusionCharts Export Handler Component</div>
<script type="text/javascript">
var myExportComponent = new FusionChartsExportObject("fcExporter_", "FCExporter.swf");
myExportComponent.Render("fcexpDiv");
</script>