Now, you need to set the chart to allow export. This is done using:
<chart exportEnabled='1' ...>
If exportEnabled is set to 0, the chart cannot initiate export process, irrespective of the trigger.
Next, you need to set the export Handler, which is the path to server-side export handler. For our example, we've set the path as: http://www.domain.com/Charts/ExportHandlers/PHP/index.php - so the XML now looks like: <chart exportEnabled='1' exportHandler='http://www.domain.com/Charts/ExportHandlers/PHP/index.php' ...>
Now, since we intend to use server-side export, we set <chart ... exportAtClient='0' ...>
Finally, using server-side export handler, we intend to have the export file download to user's machine. So, we set: <chart exportAction='download' ...>
The final XML for this example looks as under: |