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): |