Description:
This object contains all the routines that are required for FusionCharts Export Component to work.
infosoftglobal.FusionChartsExportObject()
Note:
This object is dependent upon infosoftglobal.FusionCharts for a few of its internal routines. Hence, it is pertinent that FusionCharts.js be included prior to the definition of this object.
FusionChartsExportObject( string id, string swfLocation, object componentAttributes, object exportAttributes, array sourceCharts, boolean debugMode );
Description:
This is used when we need to create a new FusionChartsExportObject()
Constructor Parameter Description:
id |
string |
This specifies the DOM ID of the SWF that will be embedded on the HTML page.
Note:
This ID is compulsory and must be unique on page as other FusionCharts object will use this ID to locate and access every new FusionChartsExportObject. |
swfLocation |
string |
Specify the Url (location) of the FCExporter.swf on your server.
Note:
Typically, this is a compulsory attribute. However, in case you have multiple FusionChartsExportObjects on your page, you may define this value centrally at FusionChartsExportObject.defaultParameters.swfLocation |
componentAttributes |
object |
[optional] Use this to specify properties of the Export Component SWF file. These attributes are sent as flashVars to the Export Component SWF when it is embedded on the web page.
The value of this parameter needs to be entered in {key1: 'value1', key2: 'value2' ... } style. The list of valid attributes can be found in the Component Attributes section.
Example:
var myComp = new FusionChartsExportObject( 'myComp', 'FusionCharts/FCExporter.swf', {width: '400', height: '100', borderColor: 'FF0000'} ); |
exportAttributes |
object |
[optional] Use this to specify export attributes for the charts that are being exported. The values in this parameter will override the corresponding value specified in dataXML of the chart(s).
The value of this parameter needs to be entered in {key1: 'value1', key2: 'value2' ... } style. The list of valid attributes can be found in the XML Attributes section.
Example:
var myComp = new FusionChartsExportObject( 'myComp', 'FusionCharts/FCExporter.swf', null, { showExportDialog: '0', exportAtClient: '1' } ); |
sourceCharts |
array |
[optional] Use this to specify the charts that will be exported in the order of array definition when the BeginExport() function is called. The value of this parameter should be the DOM ID string (chart id) of each chart that you want to export.
Example:
var myComp = new FusionChartsExportObject( 'myComp', 'FusionCharts/FCExporter.swf', null, null, ['myChartId1', 'myChartId2'] );
Note:
Even in case you want to export a single chart, you should provide the single chart id as an array. |
debugMode |
boolean
(true/false) |
[optional] Set this parameter to true if you want the Export Component to halt on every error and notify of the nature of the error encountered.
A detailed section on how to debug your export component in case you encounter an error can be found in the Debugging Export Component section. |
|