Changing the XAxis Column names in Barchart using Iron Python

Home  >>  Bar Chart  >>  Changing the XAxis Column names in Barchart using Iron Python

Changing the XAxis Column names in Barchart using Iron Python

18
Apr,2017

0
  1. Create Drop Down Property control as Axis
  2. 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)

Script

Leave a Reply

Your email address will not be published. Required fields are marked *

nine + 17 =