## Exporting charts as PDF/Images > Configuring output formats and context menu
When you enable a chart for export by setting <chart exportEnabled='1' ...>, the chart context menu shows all the export formats possible - JPEG, PNG and PDF, as shown below:
If you however need to only show selective formats or change the label of menu items, you can do it as under: <chart ... exportFormats='PDF=Export as PDF|PNG=Export as PNG' ...> The format of this attribute is FileType=Menu_Item_Label|File_Type2=Menu_Item_Label2 (the items are separated by | character; pipe character). Possible file types are JPG, PNG and PDF. The order of the item specified in the attribute value is reflected in the menu as well. The above XML generates the following menu (note the change or order and title of menu items):
Hiding the context menu items
If you do not wish to show any of the context menu items related to export (for e.g., if you just want to have the export triggered using JavaScript), you can set: <chart exportShowMenuItem='0' ..> This will remove all export related items from context menu.