Format Properties
TIBCO Spotfire®

Hi

I am writting below script for changing my Y axis to be Percent and Actual values :

is there any properties for Format :  Percent should be shows values in % (with % sign) and actual should show as actual without % sign. ?

If i do manually, I can see either % sign for both or Actual without % sign for both.

from Spotfire.Dxp.Application.Visuals import *

viz=myct.As[LineChart]()

if Values == 'Percent':
 viz.XAxis.Expression= '<[Axis.Default.Names]>'
 viz.YAxis.Expression = 'Percent'
 viz.LineByAxis.Expression = '<>'
 viz.ColorAxis.Expression = '<Section>'
else:
 viz.XAxis.Expression= '<[Axis.Default.Names]>'
 viz.YAxis.Expression = 'Value'
 viz.LineByAxis.Expression = '<>'
 viz.ColorAxis.Expression = '<Section>'

 

can someone help me for adding the format proprties ?

 

Thanks,

Ankit

(2) Answers

Login