Time for action — show chart controls when a chart is fully rendered
To show the area on the audit report page that will contain the chart controls, we listen to the FC_Rendered
event that is fired when a chart completes the rendering process.
1. Create a copy of
AccessingChart.html
in theJavaScriptCapabilities
folder and name it asSimpleEvents.html
.2. Make the following changes in the code of this file to add a new function called
FC_Rendered
and an HTML<div>
element that will contain the chart controls:<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"); var myChart = new FusionCharts ("../FusionCharts/Column3D.swf", "myChartId", "400", "300", "0", "1"); myChart.setXMLUrl("WeeklyApparelsSale.xml"); function...