from Spotfire.Dxp.Data import * from Spotfire.Dxp.Application.Visuals import * chart1 = ComparisonTable.As[VisualContent]() total = "<[Axis.Default.Names]>" service = "<[service_category] NEST [Axis.Default.Names]>" product = "<[service_category] NEST [product] NEST [Axis.Default.Names]>" if (Document.Properties["TableSlider"] == '0' ): chart1.ColumnAxis.Expression = total elif (Document.Properties["TableSlider"] == '1' ): chart1.ColumnAxis.Expression = service elif (Document.Properties["TableSlider"] == '2' ): chart1.ColumnAxis.Expression = product #chart1.RowAxis.Expression = product #chart1.MeasureAxis.Expression = product