Spotfire How to control number of decimals displayed on Value Axis? How to apply number format to Chart axis?

 

If you want to apply a specific number format to the Spotfire Chart Axis, here is how you can accomplish it using the C# code:

            if (DataType.Real.CreateLocalizedFormatter() is NumberFormatter realFormatter)
            {
                realFormatter.DecimalDigits = 5; // Number of decimals
                barChart.YAxis.Scale.Formatting.RealFormatter = realFormatter;
            }


Here is how you can apply this changes in Spotfire:





Comments

Popular posts from this blog

WPF How to Dispose ViewModel when the associated UserControl (Not Window) closes?

C# How to unit test Dispatcher

WPF: How to Deep Copy WPF object (e.g. UIElement) ?