これが私が使用するコードです
<script type="text/javascript">
// this function exports chart from JavaScript
function exportChart(exportFormat)
{
// checks if exportChart function is present and call exportChart function
if ( FusionCharts("myChartId3").exportChart )
FusionCharts("myChartId3").exportChart( { "exportFormat" : exportFormat } );
else
alert ( "Please wait till the chart completes rendering..." );
}
</script>
<input value="Export to JPG" type="button" onClick="JavaScript:exportChart('JPG')" />
<input value="Export to PNG" type="button" onClick="JavaScript:exportChart('PNG')" />
<input value="Export to PDF" type="button" onClick="JavaScript:exportChart('PDF')" />
<script type="text/javascript">
var myChart3 = new FusionCharts("FusionCharts/FCF_Line.swf", "myChartId3", "730", "440","0","1");
myChart3.setDataURL("data.php?<?php echo urlencode($url); ?>");
myChart3.render("chartdiv3");
</script>