Georgi Koemdzhiev Posted October 4, 2019 Share Posted October 4, 2019 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. Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted October 7, 2019 Share Posted October 7, 2019 Below would be a sample script from Spotfire.Dxp.Application.Visuals import * #create a script parameter 'map' referring to the mapchart map.TypeId= VisualTypeIdentifiers.CrossTable ctable=map.As[CrossTablePlot]() Link to comment Share on other sites More sharing options...
Georgi Koemdzhiev Posted October 7, 2019 Author Share Posted October 7, 2019 Thanks, will try that Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now