Page 1 of 1
How to control the displayed number of digit number
Posted: Tue Jul 06, 2010 3:10 am
by 9529132
I am trying to set axis to log with m_chart1.GetAxis().GetLeft().SetLogarithmic(TRUE) and then I set the min and max Y with m_chart1.GetAxis().GetLeft().SetMinMax(0.0001,10), but the problem is that the minimum value displayed on the chart is 0.000 instead of 0.0001. So how can I control the number of valid digit number after decimal point?
I am using Teechart v7.
Re: How to control the displayed number of digit number
Posted: Tue Jul 06, 2010 3:28 am
by 9529132
Problem solved with m_chart1.GetAxis().GetLeft().GetLabels().SetValueFormat("0.0000");
Re: How to control the displayed number of digit number
Posted: Tue Jul 06, 2010 9:09 am
by yeray
Hi David,
Note that by default, the axes labels are set to be formatted to show three decimals "#,##0.###". If you want to show one more, you can change it for "#,##0.####":
Code: Select all
TChart1.Axis.Left.Labels.ValueFormat = "#,##0.####"
Re: How to control the displayed number of digit number
Posted: Tue Jul 06, 2010 9:58 am
by 9529132
Noted with thanks.