You are viewing documentation for an older version. For current documentation - click here.

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.


<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    

In the FusionChartsExportObject constructor, you can provide export Attributes in {key1: 'value1', key2: 'value2', ... } format.


var myComponent = new FusionChartsExportObject('myComponent', 'Charts/FCexporter.swf', null    
{ exportAtClient: '1', exportFormat: 'PDF' } );

Attribute Name Value Type Description Default Value
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.

exportAtClient boolean

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.

exportFormat string enum
('PNG' / 'JPG' / 'PDF')

You can choose the format in which the chart is exported.

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.

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

Whether to show the export dialog during capture phase. If not, the chart starts capturing process without the dialog visible.

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.