Printing Spotfire MapChart layer information in IronPython
Basically I want to be able to print (or store) the map chart layer properties (color axis, feature by axis, etc.) from either a feature or marker layer, for all the layers in a map chart. I'm doing something similar with bar charts, but the API for the maps is different. Here is a snippet of the code I'm using for Bar Charts:
from Spotfire.Dxp.Application.Visuals import *
text = "Bar info:"
#loop through pages and get viz info
for p in Document.Pages:
for v in p.Visuals:
if str(v.TypeId) in ("TypeIdentifier:Spotfire.BarChart"):
text += p.Title + ", " + v.Title + ", " + str(v.As[VisualContent]().XAxis.Expression) + ", " + str(v.As[VisualContent]().YAxis.Expression)
text += ""