Time for action — customize the export component attributes
1. Duplicate the previously created
ExportUsingContextMenu.html
and save asCustomizeClientSideExport.html
.2. Open the
CustomizeClientSideExport.html
file within a text editor of your choice, and replace the export component instantiation code (lines 13 to 14) with the following updated code, essentially passing a third parameter for customizing various aspects of the export component:exportComponentObj = new FusionChartsExportObject("exportComponent", "../FusionCharts/FCExporter.swf", { btnSaveTitle: "Save Report", width: "130", height: "22", btnWidth: "100", btnHeight: "22", vMargin: "0" });
3. Within the
loadReport
function, (at around line 26) delete the lineexportComponentObj.Render("exporterContainer");.This
prevents the export component from rendering along with the chart. There is a good reason for doing this and we will look into this down the line.4. After the end of the
loadReport
function (around line 27), insert...