set the formatting for Lines and Curves same as Y-axis

Hi,

I am changing the Y-axis formatting using ironpython.. So i want to apply the same formatting as Y-axis to lines and curves through ironpython.....

Thanks.

from Spotfire.Dxp.Application.Visuals import *
from Spotfire.Dxp.Data import DataType
from Spotfire.Dxp.Data.Formatters import *

viz = viz.As[LineChart]()
formatter = DataType.Real.CreateLocalizedFormatter()
formatter.Category = NumberFormatCategory.Number
formatter.DecimalDigits = 2
viz.YAxis.Scale.Formatting.RealFormatter = formatter

(2) Answers

Login