Page 1 of 1
y axis label formatting
Posted: Wed Jul 08, 2009 11:50 am
by 13045482
Hi
I have a bar chart whose y axis labels are currently showing upto one decimal palce. i want them to show upto 2 decimal places. How to do that?Tahnks .
Re: y axis label formatting
Posted: Wed Jul 08, 2009 12:30 pm
by yeray
Hi shikha,
You have to do this to have two decimals at maximum:
Code: Select all
tChart1.Axes.Left.Labels.ValueFormat = "#.##";
Ans this to force two decimals:
Code: Select all
tChart1.Axes.Left.Labels.ValueFormat = "#.00";
Re: y axis label formatting
Posted: Thu Sep 03, 2009 5:10 am
by 13045482
Thanks.
whts the difference between these-
tcStraAssessRC.Axes.Left.Labels.ValueFormat = "#.##"
and
tcStraAssessRC.Axes.Left.Labels.ValueFormat = "0.00"
Re: y axis label formatting
Posted: Thu Sep 03, 2009 8:30 am
by narcis
Hi shikha,
Please read MSDN's
Custom Numeric Format Strings entry for complete information.