How to set same number of digits of values in y axis


https://www.nevron.com/Forum/Topic12888.aspx
Print Topic | Close Window

By shweta jain - 5 Years Ago
Hi,
I want same number of digit of values in y axis. I have seen this in one of the examples of nevron, there have same number of digit values in x axis. I have attached this examples chart in this message. How can we do same number of digit of values in y axis of chart.https://www.nevron.com/forum/uploads/images/be5c73a5-2f2b-4fe6-b14a-c4fb.png
By Nevron Support - 5 Years Ago
Hi Shweta,
You can apply a custom numeric value formatter:
   NLinearScaleConfigurator yScale = (NLinearScaleConfigurator)chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator;
    yScale.LabelValueFormatter = new NNumericValueFormatter("00.");
The above for example will make sure the numbers always start with 2 digits. 
Let us know if you have any questions.