Time for action — enable exporting of charts using the context menu
1. Under the
LearningFusionCharts
folder that we have been using all along, create a new folder namedExportingCharts
. We will use this folder to store our files as we proceed in this chapter.2. Within this new folder, create a new file
ExportUsingContextMenu.html
and type the following contents into it:<html> <head> <title>Audit Report of Harry's SuperMart</title> <script type="text/javascript" src="../FusionCharts/FusionCharts.js"> </script> <script type="text/javascript" src="../FusionCharts/FusionChartsExportComponent.js"> </script> <script type="text/javascript"><!-- var chartObj = new FusionCharts("../FusionCharts/Column3D.swf", "salesChart", "400","300"), exportComponentObj = new FusionChartsExportObject("exportComponent", "../FusionCharts/FCExporter.swf"); function loadReport () { chartObj.setXMLUrl("ApparelSale_ExportEnabled.xml"); chartObj.render...