We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Display 4 Decimal place in y-axis

I have a problem on displaying 4 decimal place in y-axis. But i just can display 2 decimal place. I am using the trial version of Essential Studio version 6.1.0.*.

How can i fix it?

the following are the part of code:
double maxValue1 = 1.227897;
double minValue1 = 0.9565675;

double avgerageb = (maxValue1 - minValue1) / 7;

this.ChartWebControl1.PrimaryYAxis.Range = new MinMaxInfo(minValue1, maxValue1, avgerageb);

this.ChartWebControl1.PrimaryYAxis.ForeColor = Color.FromArgb(185, 247, 179, 78);

this.ChartWebControl1.PrimaryYAxis.Title = "Basic Rate";

this.ChartWebControl1.PrimaryYAxis.EdgeLabelsDrawingMode = ChartAxisEdgeLabelsDrawingMode.Shift;

this.ChartWebControl1.PrimaryYAxis.Format = "0.0000";


1 Reply

BP Bhuvaneswari P Syncfusion Team January 29, 2008 01:39 PM UTC

Hi Henry,

Thanks for evaluating Syncfusion products.

Display 4 Decimal place in y-axis

I am afraid that I was not able to reproduce the issue. When I set the this.ChartWebControl1.PrimaryYAxis.Format = "0.0000", it displays only 4 decimal places. I have tested this issue in version 6.1.0.34.

Please download the sample from the below location:
Loader.
Live Chat Icon For mobile
Up arrow icon