How to switch visualization to another kind programmatically?

Hello, 

I am wondering if there is a way to convert a visualization to another kind programmatically? Basically, executing the same logic as if we are right-clicking on a Map chart and selecting "Switch Visualization to" menu item (see below image).



The reason why I want that functionality is to be able to convert a Map chart to a CrossTable and call its ExportText method (API doc ref: t.ly/q5LP3) and write the shown data to  a txt file.

 

(1) Answer

Login