Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

5. Exporting Charts > Time for action — enable exporting of charts using the co...

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 named ExportingCharts. 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&apos;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("chartContainer");
    exportComponentObj.Render("exporterContainer");
    }
    // -->
    </script>
    </head>
    <body onload="loadReport()">
    <div id="chartContainer">FusionCharts will load here!</di....

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial