Decimal Y-Axes is always 0.

Hi,

I am using C# WinForms to graph pressure (bar), example data '0.00175534' & '0.00181231', the label on the left read 0.0 for each, this graph will need to be dynamic as it we reach data of over 100bar.


Steps I have taken:
  1. I have used the Chart Wizard to edit the format, trying 'n8' & '##.########', this just added '00.0000000' for each.
  2. I have also changed the 'RoundingPlaces' to '5', this also did not have the effect I was looking for.



Any ideas?

3 Replies 1 reply marked as answer

YP Yuvaraj Palanisamy Syncfusion Team March 4, 2021 11:08 AM UTC

Hi Dom Blount, 
 
Greetings from Syncfusion. 
 
We have analyzed your query and we would like to inform that the reported problem has been solved by using RangePaddingType to be None. By default, RangePaddingType becomes Calculate which is round up the axis range with nice auto interval calculation. Hence, the axis labels are shown with the rounded value. And use of Rounding places property value used to showing decimal points. 

Please refer the below code example
 
 
chartControl1.PrimaryYAxis.RangePaddingType = ChartAxisRangePaddingType.None; 
 
chartControl1.PrimaryYAxis.RoundingPlaces = 8; 
 
 
Output: 
 
 
Regards, 
Yuvaraj. 


Marked as answer

DB Dom Blount March 4, 2021 11:19 AM UTC

Thank you!

Fixed my issue :)




YP Yuvaraj Palanisamy Syncfusion Team March 4, 2021 11:28 AM UTC

Hi Dom Blount, 
 
Thanks for your update.  
 
Please let us know if you have any concern. 
 
Regards, 
Yuvaraj 


Loader.
Up arrow icon