Changing the XAxis Column names in Barchart using Iron Python
- Create Drop Down Property control as Axis
- Trigger the below script to chnage X aixs values in the selecting dropdown control.
from Spotfire.Dxp.Application.Visuals import *
viz = myviz.As[BarChart]()
if propvalue == ‘AEDECOD’:
viz.XAxis.Expression = ‘<${Axis} as [Term]>’
elif propvalue == ‘AEBODSYS’:
viz.XAxis.Expression = ‘<${Axis} as[System]>’
#print(viz)