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.
How to control the displayed number of digit number
Re: How to control the displayed number of digit number
Problem solved with m_chart1.GetAxis().GetLeft().GetLabels().SetValueFormat("0.0000");
Re: How to control the displayed number of digit number
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.####":
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.####"
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: How to control the displayed number of digit number
Noted with thanks.