These attributes are used while calling the exportChart() function of any FusionCharts object. They are meant to be passed as simple JavaScript object (JSON-like property-list) whenever there is the exportAttributes in context.
Typical usage of these attributes is in exportAttributes of every new FusionChartsExportObject.
Example:
<script type="text/javascript">
var myExporter = new FusionChartsExportObject('myExporter', 'FusionCharts/FCExporter.swf'); // customize the exporter by modifying the exportAttributes myExporter.exportAttributes.exportAtClient = '1'; myExporter.exportAttributes.exportFormat = 'PDF'; // render the UI myExporter.Render('ExporterContainerID'); </script>
In the FusionChartsExportObject constructor, you can provide export Attributes in {key1: 'value1', key2: 'value2', ... } format.
Example:
var myComponent = new FusionChartsExportObject('myComponent', 'FusionCharts/FCexporter.swf', null { exportAtClient: '1', exportFormat: 'PDF' } );
exportHandler |
string |
In case of Server-side exporting, this refers to the path of the Server-side Export Handler (the ready-to-use scripts that we provide).
In case of Client-side exporting, this refers to the DOM Id of FusionCharts Export component that is embedded in your web page, along with the chart. |
undefined |
exportAtClient |
boolean
(0/1) |
Whether to use Client-side Export Handlers, or Server-side Export Handlers.
Note: By default the value is set to 0 which means the export is supposed to be done at server side. |
0 |
exportFormat |
string enum
('PNG' / 'JPG' / 'PDF') |
You can choose the format in which the chart is exported. |
PNG |
exportFileName |
string |
Using this attribute you can specify the name (excluding the extension) of the file to be exported.
When Server-side–save export is specified this attribute must provide the relative path of the destination file that is going to be saved to the server.
For example,“../gallery/charts/myExpenseChart” |
|
exportAction |
string enum
('download' / 'save') |
In case of Server-side exporting, the action specifies whether the exported image will be sent back to client as download, or whether it will be saved on the server.
Note: This is only available for Server-side export. |
download |
exportTargetWindow |
string enum
('_self' / '_blank') |
In case of Server-side exporting and when using download as action, this lets you configure whether the return image/PDF will open in same window (as an attachment for download), or whether it will open in a new window.
Note: This is only available for Server-side export. |
|
showExportDialog |
boolean
(0/1) |
Whether to show the export dialog during capture phase. If not, the chart starts capturing process without the dialog visible. |
1 |
exportCallback |
string |
This attribute specifies the name of the callback JavaScript function which will be called when the export event is complete.
The internal JavaScript function FC_Exported is the default method that will be called when no value specified. |
FC_Exported |
|