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', 'Charts/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', 'Charts/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 DOMId 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.
e.g. “../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'll 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 is specified. |
FC_Exported |
|