Export Chart Images on the Server Without Rendering in a Browser
5 stars based on
You can even add custom items there that execute your arbitrary code on click. It should always be an array, even if you have a single item in it.
The array items could be either objects or format codes. Objects will allow you to specify labels, action, icon, child items and even custom code to be executedon click.
Please note that we have wrapped out menu into another menu item, so that only the icon is displayed until we roll over the icon. This means that technicallywe have a two-level hierarchical menu. If we opmitted that first step, the chart would simply display a format list right there on the chart. See the Pen Exporting the chart to various formats multi-level export menu by amCharts amcharts on CodePen. Adding menu item to print the chart or map is as easy as adding export ones. By default each menu item triggers some kind of export.
Feel free to override any styles defined in it, create your own version and modify as you see fit. If you choose to modify it, we suggest creating a copy so it does not get overwritten when you update amCharts or plugin.
The code is here for the explanatory purposes. This plugin requires at least 3. Back to Knowledge Base main page. A file name to use for generated export files an extension will be appended to it based on the export format.