from Spotfire.Dxp.Application.Visuals import CategoryKey
from Spotfire.Dxp.Application.Visuals import CombinationChart
#Define sorting typesmyCategoryKey0=CategoryKey() #Same as 'None'
myCategoryKey1=CategoryKey("Sum(ColA)")
myCategoryKey2=CategoryKey("Sum(ColB)")
#Perform sorting
vis.As[CombinationChart]().SortBy=myCategoryKey1
1 comment:
Hi
For myCategoryKey1=CategoryKey("Sum(ColA)")
It does not work if I replace "Sum(ColA)" to "Sum(ColA)/Sum(ColB).
Thanks
Post a Comment