In the audit report page, we will first create a chart which has weekly sales data for one of the departments.
1. Under the
LearningFusionCharts
folder that we had earlier created in Chapter 1, Introducing FusionCharts, create a new folderJavaScriptCapabilities
. This will store all the files that we will incrementally create in this chapter.2. Create a new file
AccessingChart.html
and type the following content 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"><!-- var myChart = new FusionCharts ("../FusionCharts/Column3D. swf", "myChartId", "400", "300", "0", "1"); myChart.setXMLUrl("WeeklyApparelsSale.xml"); function loadReport () { var chart = FusionCharts("myChartId"); chart.render("chartContainer");} // --> </script> </head> <body...