Posts

Showing posts with the label Axis Number Format

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

Image
  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: