Is it possible to extend the exportEnabled button options so that we add other function calls e.g. to toggle a theme action, change chart type action etc?
Please take a look at this jsfiddle, where the export button is extended to have an option to export chart data as CSV. Similarly, you can customize it according to your requirement.